AutoC2.sh 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. #!/bin/bash
  2. cd /home/pi
  3. echo "Updating Your System"
  4. apt-get update -y && apt-get upgrade -y
  5. apt update -y && apt upgrade -y
  6. apt autoremove -y
  7. echo ""
  8. echo "Installing System Dependencies"
  9. echo ""
  10. apt install git docker.io golang python3 python3-pip pipx chromium-browser -y
  11. /usr/bin/python3 -m pip install --upgrade pip
  12. echo "Removing Unneeded Directories"
  13. rm -rf Videos/
  14. rm -rf Music/
  15. rm -rf Public/
  16. rm -rf Templates/
  17. echo""
  18. echo "Installing Hackery Stuff"
  19. apt install nmap amass recon-ng -y
  20. echo "Creating Repo Folders"
  21. mkdir Repo
  22. cd Repo
  23. mkdir Initial_Access
  24. mkdir Recon
  25. mkdir Delivery
  26. mkdir Command_And_Control
  27. mkdir Situational_Awareness
  28. mkdir Credential_Dumping
  29. mkdir Privilege_Escallation
  30. mkidr Defense_Evasion
  31. mkdir Social_Engineering
  32. mkdir Phishing
  33. mkdir Persistence
  34. mkdir Lateral_Movement
  35. mkdir Exfiltration
  36. mkdir Cloud
  37. mkdir Payload_Development
  38. mkdir Hak5_Implants
  39. mkdir Wireless
  40. echo""
  41. echo "Getting Resources"
  42. sleep 2
  43. echo""
  44. echo "Cloning Recon Resources"
  45. echo""
  46. cd Recon
  47. echo""
  48. echo "Installing RustScan"
  49. echo""
  50. git clone https://github.com/RustScan/RustScan.git
  51. cd RustScan.git
  52. docker build -t rustscan .
  53. cd ../
  54. echo "Installing GitLeaks"
  55. echo ""
  56. git clone https://github.com/zricethezav/gitleaks.git
  57. cd gitleaks/
  58. make build
  59. cd ../
  60. echo ""
  61. cd ../
  62. echo "Installing S3Scanner"
  63. echo ""
  64. git clone https://github.com/sa7mon/S3Scanner.git
  65. cd S3Scanner/
  66. pip3 install -r requirements.txt
  67. python3 -m S3Scanner
  68. cd ../
  69. echo""
  70. echo "Installing Cloud_Enum"
  71. echo""
  72. git clone https://github.com/initstring/cloud_enum.git
  73. cd cloud_enum
  74. pip3 install -r ./requirements.txt
  75. cd ../
  76. echo "Installing Buster"
  77. echo ""
  78. git clone https://github.com/sham00n/buster.git
  79. cd buster/
  80. python3 setup.py install
  81. cd ../
  82. git clone https://github.com/initstring/linkedin2username.git
  83. echo ""
  84. echo "Installing WitnessMe"
  85. python3 -m pip install --user pipx
  86. pipx install witnessme
  87. pipx ensurepath
  88. cd ../
  89. echo ""
  90. echo "Installing Pagodo"
  91. echo ""
  92. git clone https://github.com/opsdisk/pagodo.git
  93. cd pagodo
  94. pip install -r requirements.txt
  95. cd ../
  96. echo ""
  97. echo "Installing AttackSurfaceMapper"
  98. echo""
  99. git clone https://github.com/superhedgy/AttackSurfaceMapper.git
  100. cd AttackSurfaceMapper
  101. python3 -m pip install --no-cache-dir -r requirements.txt
  102. cd ../
  103. echo ""
  104. echo "Installing SpiderFoot"
  105. echo ""
  106. git clone https://github.com/smicallef/spiderfoot.git
  107. cd spiderfoot
  108. pip3 install -r requirements.txt
  109. pip3 install cherrypy
  110. pip3 install cherrypy_cors
  111. pip3 install publicsuffixlist
  112. pip3 install networkx
  113. pip3 install openpyxl
  114. cd ../
  115. echo""
  116. echo "Installing DNScan"
  117. echo ""
  118. git clone https://github.com/rbsec/dnscan.git
  119. cd dnscan
  120. pip3 install -r requirements.txt
  121. pip3 install setuptools
  122. cd ../
  123. echo""
  124. echo "Installing SpoofCheck"
  125. echo""
  126. git clone https://github.com/BishopFox/spoofcheck.git
  127. cd spoofcheck
  128. pip3 install -r requirements.txt
  129. echo ""
  130. echo "Installing LinkedInt"
  131. echo""
  132. git clone https://github.com/vysecurity/LinkedInt.git
  133. cd LinkedInt
  134. pip3 install -r requirements.txt
  135. echo ""
  136. echo "Installing EyeWitness"
  137. git clone https://github.com/ChrisTruncer/EyeWitness.git
  138. cd EyeWitness/Python/setup
  139. bash setup.sh
  140. cd /opt/Recon/
  141. echo""
  142. echo "Installing Aquatone"
  143. echo ""
  144. wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
  145. unzip aquatone_linux_amd64_1.7.0.zip
  146. cd ../
  147. echo""
  148. echo "Installing DNSrecon"
  149. git clone https://github.com/darkoperator/dnsrecon.git
  150. echo ""
  151. git clone https://github.com/SpiderLabs/social_mapper.git
  152. git clone https://github.com/xillwillx/skiptracer.git
  153. git clone https://github.com/dchrastil/ScrapedIn.git
  154. git clone https://github.com/NickSanzotta/linkScrape.git
  155. git clone https://github.com/ElevenPaths/FOCA
  156. git clone https://github.com/laramies/theHarvester.git
  157. git clone https://github.com/laramies/metagoofil.git
  158. git clone https://github.com/killswitch-GUI/SimplyEmail.git
  159. git clone https://github.com/dxa4481/truffleHog.git
  160. git clone https://github.com/ChrisTruncer/Just-Metadata.git
  161. git clone https://github.com/nccgroup/typofinder.git
  162. git clone https://github.com/thewhiteh4t/pwnedOrNot.git
  163. git clone https://github.com/metac0rtex/GitHarvester.git
  164. echo "Cloning Initial Access Resources"
  165. cd ../Initial_Access
  166. git clone https://github.com/byt3bl33d3r/SprayingToolkit.git
  167. git clone https://github.com/nyxgeek/o365recon.git
  168. git clone https://github.com/blacklanternsecurity/TREVORspray.git
  169. echo "Cloning Payload Development Resources"
  170. cd ../Payload_Development
  171. git clone https://github.com/trustedsec/unicorn.git
  172. git clone https://github.com/nccgroup/demiguise.git
  173. git clone https://github.com/secretsquirrel/the-backdoor-factory.git
  174. git clone https://github.com/govolution/avet.git
  175. git clone https://github.com/threatexpress/metatwin.git
  176. git clone https://github.com/cobbr/PSAmsi.git
  177. git clone https://github.com/3gstudent/Worse-PDF.git
  178. git clone https://github.com/optiv/Ivy.git
  179. git clone https://github.com/phra/PEzor.git
  180. git clone https://github.com/med0x2e/GadgetToJScript.git
  181. git clone https://github.com/optiv/ScareCrow.git
  182. git clone https://github.com/TheWover/donut.git
  183. git clone https://github.com/D00MFist/Mystikal.git
  184. git clone https://github.com/9emin1/charlotte.git
  185. git clone https://github.com/xforcered/InvisibilityCloak.git
  186. git clone https://github.com/FuzzySecurity/Dendrobate.git
  187. git clone https://github.com/BC-SECURITY/Offensive-VBA-and-XLS-Entanglement.git
  188. git clone https://github.com/aaaddress1/xlsGen.git
  189. git clone https://github.com/bats3c/darkarmour.git
  190. git clone https://github.com/outflanknl/InlineWhispers.git
  191. git clone https://github.com/outflanknl/EvilClippy.git
  192. git clone https://github.com/fireeye/OfficePurge.git
  193. git clone https://github.com/rasta-mouse/ThreatCheck.git
  194. git clone https://github.com/gloxec/CrossC2.git
  195. git clone https://github.com/sensepost/ruler.git
  196. git clone https://github.com/fireeye/DueDLLigence.git
  197. git clone https://github.com/rasta-mouse/RuralBishop.git
  198. git clone https://github.com/rasta-mouse/TikiTorch.git
  199. git clone https://github.com/mdsecactivebreach/SharpShooter.git
  200. git clone https://github.com/cobbr/SharpSploit.git
  201. git clone https://github.com/rvrsh3ll/MSBuildAPICaller.git
  202. git clone https://github.com/sevagas/macro_pack.git
  203. git clone https://github.com/klezVirus/inceptor.git
  204. git clone https://github.com/0xsp-SRD/mortar.git
  205. git clone https://github.com/Mr-Un1k0d3r/RedTeamCCode.git
  206. echo "Cloning Delivery Resources"
  207. cd ../Delivery
  208. git clone https://github.com/mdsecactivebreach/o365-attack-toolkit.git
  209. git clone https://github.com/beefproject/beef.git
  210. echo "Cloning Your C2 Resources"
  211. cd ../Command_And_Control
  212. echo "Cloning C2 Frameworks"
  213. mkdir C2_Frameworks
  214. cd C2_Frameworks
  215. git clone https://github.com/BC-SECURITY/Empire.git
  216. git clone https://github.com/nettitude/PoshC2.git
  217. git clone https://github.com/zerosum0x0/koadic.git
  218. git clone https://github.com/Ne0nd0g/merlin.git
  219. git clone https://github.com/its-a-feature/Mythic.git
  220. git clone https://github.com/cobbr/Covenant.git
  221. git clone https://github.com/bats3c/shad0w.git
  222. git clone https://github.com/BishopFox/sliver.git
  223. git clone https://github.com/byt3bl33d3r/SILENTTRINITY.git
  224. git clone https://github.com/n1nj4sec/pupy.git
  225. sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev subversion git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev nmap -y
  226. sudo curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
  227. echo "Cloning Staging Resources"
  228. cd ../
  229. mkdir Staging
  230. cd Staging
  231. git clone https://github.com/kgretzky/pwndrop.git
  232. git clone https://github.com/FortyNorthSecurity/C2concealer.git
  233. git clone https://github.com/rvrsh3ll/FindFrontableDomains.git
  234. git clone https://github.com/threatexpress/domainhunter.git
  235. git clone https://github.com/mgeeky/RedWarden.git
  236. git clone https://github.com/Flangvik/AzureC2Relay.git
  237. git clone https://github.com/FSecureLABS/C3.git
  238. git clone https://github.com/mdsecactivebreach/Chameleon.git
  239. git clone https://github.com/0xZDH/redirect.rules.git
  240. echo "Cloning Log Aggregation Resources"
  241. cd ../
  242. mkdir Log_Aggregation
  243. cd Log_Aggregation
  244. git clone https://github.com/outflanknl/RedELK.git
  245. git clone https://github.com/SecurityRiskAdvisors/RedTeamSIEM.git
  246. echo "Cloning Situational Awareness Resources"
  247. cd /home/pi/Repo/Situational_Awareness
  248. mkdir Host_Situtational_Awareness
  249. cd Host_Situational_Awareness
  250. git clone https://github.com/EncodeGroup/AggressiveProxy.git
  251. git clone https://github.com/EncodeGroup/Gopher.git
  252. git clone https://github.com/PwnDexter/SharpEDRChecker.git
  253. git clone https://github.com/trustedsec/CS-Situational-Awareness-BOF.git
  254. git clone https://github.com/GhostPack/Seatbelt.git
  255. git clone https://github.com/vivami/SauronEye.git
  256. git clone https://github.com/mitchmoser/SharpShares.git
  257. git clone https://github.com/Flangvik/SharpAppLocker/.git
  258. git clone https://github.com/rvrsh3ll/SharpPrinter.git
  259. cd ../
  260. mkdir Domain_Situational_Awareness
  261. cd Domain_Situational_Awareness
  262. git clone https://github.com/FuzzySecurity/StandIn.git
  263. git clone https://github.com/outflanknl/Recon-AD.git
  264. git clone https://github.com/BloodHoundAD/BloodHound.git
  265. git clone https://github.com/GhostPack/PSPKIAudit.git
  266. git clone https://github.com/tevora-threat/SharpView.git
  267. git clone https://github.com/GhostPack/Rubeus.git
  268. git clone https://github.com/l0ss/Grouper.git
  269. git clone https://github.com/improsec/ImproHound.git
  270. git clone https://github.com/adrecon/ADRecon.git
  271. git clone https://github.com/bats3c/ADCSPwn.git
  272. cd /home/pi/Repo/Credential_Dumping/
  273. git clone https://github.com/gentilkiwi/mimikatz.git
  274. git clone https://github.com/outflanknl/Dumpert.git
  275. git clone https://github.com/swisskyrepo/SharpLAPS.git
  276. git clone https://github.com/GhostPack/SharpDPAPI.git
  277. git clone https://github.com/GhostPack/KeeThief.git
  278. git clone https://github.com/GhostPack/SafetyKatz.git
  279. git clone https://github.com/Barbarisch/forkatz.git
  280. git clone https://github.com/RedCursorSecurityConsulting/PPLKiller.git
  281. git clone https://github.com/AlessandroZ/LaZagne.git
  282. git clone https://github.com/hoangprod/AndrewSpecial.git
  283. git clone https://github.com/outflanknl/Net-GPPPassword.git
  284. git clone https://github.com/djhohnstein/SharpChromium.git
  285. git clone https://github.com/rxwx/chlonium.git
  286. git clone https://github.com/chrismaddalena/SharpCloud.git
  287. git clone https://github.com/skelsec/pypykatz.git
  288. git clone https://github.com/helpsystems/nanodump.git
  289. echo "Cloning Privilege Escallation Resources"
  290. cd /home/pi/Repo/Privilege_Escallation
  291. git clone https://github.com/rsmudge/ElevateKit.git
  292. git clone https://github.com/rasta-mouse/Watson.git
  293. git clone https://github.com/GhostPack/SharpUp.git
  294. git clone https://github.com/hlldz/dazzleUP.git
  295. git clone https://github.com/carlospolop/PEASS-ng.git
  296. git clone https://github.com/CCob/SweetPotato.git
  297. git clone https://github.com/S3cur3Th1sSh1t/MultiPotato.git
  298. echo "Cloning Defense Evasion Resources"
  299. cd /home/pi/Repo/Defense_Evasion
  300. git clone https://github.com/hlldz/RefleXXion.git
  301. git clone https://github.com/wavestone-cdt/EDRSandblast.git
  302. git clone https://github.com/APTortellini/unDefender.git
  303. git clone https://github.com/Yaxser/Backstab.git
  304. git clone https://github.com/boku7/spawn.git
  305. git clone https://github.com/CCob/BOF.NET.git
  306. git clone https://github.com/Flangvik/NetLoader.git
  307. git clone https://github.com/outflanknl/FindObjects-BOF.git
  308. git clone https://github.com/GetRektBoy724/SharpUnhooker.git
  309. git clone https://github.com/bats3c/EvtMute.git
  310. git clone https://github.com/xforcered/InlineExecute-Assembly.git
  311. git clone https://github.com/hlldz/Phant0m.git
  312. git clone https://github.com/CCob/SharpBlock.git
  313. git clone https://github.com/Kharos102/NtdllUnpatcher.git
  314. git clone https://github.com/bats3c/DarkLoadLibrary.git
  315. git clone https://github.com/Soledge/BlockEtw.git
  316. git clone https://github.com/mdsecactivebreach/firewalker.git
  317. git clone https://github.com/Cerbersec/KillDefenderBOF.git
  318. echo "Cloning Social Engineering Resources"
  319. cd /home/pi/Social_Engineering
  320. git clone https://github.com/trustedsec/social-engineer-toolkit.git
  321. git clone https://github.com/bhdresh/SocialEngineeringPayloads.git
  322. echo "Cloning Phishing Resources"
  323. cd /home/pi/Phishing
  324. git clone https://github.com/ryhanson/phishery.git
  325. git clone https://github.com/kgretzky/evilginx2.git
  326. git clone https://github.com/fireeye/PwnAuth.git
  327. git clone https://github.com/drk1wi/Modlishka.git
  328. git clone https://github.com/securestate/king-phisher.git
  329. git clone https://github.com/Raikia/FiercePhish.git
  330. git clone https://github.com/fireeye/ReelPhish.git
  331. git clone https://github.com/gophish/gophish.git
  332. git clone https://github.com/ustayready/CredSniper.git
  333. git clone https://github.com/pentestgeek/phishing-frenzy.git
  334. git clone https://github.com/L4bF0x/PhishingPretexts.git
  335. echo "Cloning Persistence Resources"
  336. cd /home/pi/Repo/Persistence
  337. git clone https://github.com/0xthirteen/SharpStay.git
  338. git clone https://github.com/fireeye/SharPersist.git
  339. git clone https://github.com/outflanknl/SharpHide.git
  340. git clone https://github.com/Ben0xA/DoUCMe.git
  341. git clone https://github.com/nccgroup/ABPTTS.git
  342. git clone https://github.com/blackarrowsec/pivotnacci.git
  343. git clone https://github.com/sensepost/reGeorg.git
  344. git clone https://github.com/HarmJ0y/DAMP.git
  345. git clone https://github.com/0x09AL/IIS-Raid.git
  346. git clone https://github.com/antonioCoco/SharPyShell.git
  347. echo "Cloning Lateral Movement Resources"
  348. cd /home/pi/Repo/Lateral_Movement
  349. git clone https://github.com/RiccardoAncarani/LiquidSnake.git
  350. git clone https://github.com/NetSPI/PowerUpSQL.git
  351. git clone https://github.com/0xthirteen/SharpRDP.git
  352. git clone https://github.com/0xthirteen/MoveKit.git
  353. git clone https://github.com/juliourena/SharpNoPSExec.git
  354. git clone https://github.com/lgandx/Responder.git
  355. git clone https://github.com/dirkjanm/mitm6.git
  356. git clone https://github.com/SecureAuthCorp/impacket.git
  357. git clone https://github.com/mdsecactivebreach/Farmer.git
  358. git clone https://github.com/FortyNorthSecurity/CIMplant.git
  359. git clone https://github.com/Mr-Un1k0d3r/PowerLessShell.git
  360. git clone https://github.com/FSecureLABS/SharpGPOAbuse.git
  361. git clone https://github.com/ropnop/kerbrute.git
  362. git clone https://github.com/blackarrowsec/mssqlproxy.git
  363. git clone https://github.com/Kevin-Robertson/Invoke-TheHash.git
  364. git clone https://github.com/Kevin-Robertson/InveighZero.git
  365. git clone https://github.com/jnqpblc/SharpSpray/git
  366. git clone https://github.com/byt3bl33d3r/CrackMapExec.git
  367. git clone https://github.com/pkb1s/SharpAllowedToAct.git
  368. git clone https://github.com/bohops/SharpRDPHijack.git
  369. git clone https://github.com/klezVirus/CheeseTools.git
  370. git clone https://github.com/iomoath/SharpSpray.git
  371. git clone https://github.com/BloodHoundAD/SharpHound.git
  372. git clone https://github.com/PowerShellMafia/PowerSploit.git
  373. git clone https://github.com/NetSPI/PowerUpSQL.git
  374. git clone https://github.com/DanMcInerney/icebreaker.git
  375. git clone https://github.com/JavelinNetworks/HoneypotBuster.git
  376. echo "Cloning Exfiltration Resources"
  377. cd /home/pi/Repo/Exfiltration
  378. git clone https://github.com/Flangvik/SharpExfiltrate.git
  379. git clone https://github.com/Arno0x/DNSExfiltrator.git
  380. git clone https://github.com/FortyNorthSecurity/Egress-Assess.git
  381. echo "Cloning Cloud Resources"
  382. cd /home/pi/Repo/Cloud
  383. mkdir AWS
  384. git clone https://github.com/RhinoSecurityLabs/pacu.git
  385. git clone https://github.com/duo-labs/cloudmapper.git
  386. git clone https://github.com/andresriancho/enumerate-iam.git
  387. git clone https://github.com/jordanpotti/AWSBucketDump.git
  388. cd ../
  389. mkdir Azure
  390. cd Azure
  391. git clone https://github.com/fox-it/adconnectdump.git
  392. git clone https://github.com/Azure/Stormspotter.git
  393. git clone https://github.com/dirkjanm/ROADtools.git
  394. git clone https://github.com/NetSPI/MicroBurst.git
  395. git clone https://github.com/Gerenios/AADInternals.git
  396. echo "Cloning Hak5 Implant Resources"
  397. cd /home/pi/Repo/Hak5_Implants
  398. git clone https://github.com/hak5/omg-payloads.git
  399. git clone https://github.com/hak5/bashbunny-payloads.git
  400. git clone https://github.com/hak5/usbrubberducky-payloads.git
  401. git clone https://github.com/hak5/pineapple-community-packages.git
  402. git clone https://github.com/hak5/pineapple-modules.git
  403. git clone https://github.com/hak5/mk7-docs.git
  404. git clone https://github.com/hak5/keycroc-payloads.git
  405. git clone https://github.com/hak5/sharkjack-payloads.git
  406. git clone https://github.com/hak5/lanturtle-modules.git
  407. git clone https://github.com/hak5/hak5-docs.git
  408. git clone https://github.com/hak5/packetsquirrel-payloads.git
  409. git clone https://github.com/hak5/nano-tetra-modules.git
  410. git clone https://github.com/hak5/signalowl-payloads.git
  411. git clone https://github.com/hak5/plunderbug-scripts.git
  412. echo "Cloning Wireless Resources"
  413. cd /home/pi/Repo/Wireless
  414. git clone https://github.com/derv82/wifite2.git
  415. git clone https://github.com/wifiphisher/wifiphisher.git
  416. git clone https://github.com/sensepost/mana.git
  417. git clone https://github.com/joswr1ght/cowpatty.git
  418. git clone https://github.com/athanstan/EvilTwin_AP_CaptivePortal.git