AutoC2.sh 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537
  1. #!/bin/bash
  2. cat << "EOF"
  3. __ _ ___ ___ _ _ _ __ ___ ___ | |__ _ __ ___ __ _ ___| |__
  4. / _` / __/ __| | | | '_ ` _ \ / _ \_____| '_ \| '__/ _ \/ _` |/ __| '_ \
  5. | (_| \__ \__ \ |_| | | | | | | __/_____| |_) | | | __/ (_| | (__| | | |
  6. \__,_|___/___/\__,_|_| |_| |_|\___| |_.__/|_| \___|\__,_|\___|_| |_|
  7. **AutoC2**
  8. Use At Your Own Risk
  9. EOF
  10. sleep 2
  11. echo""
  12. echo""
  13. echo "WARNING THIS SCRIPT TAKES FUCKING FOREVER!!!"
  14. echo""
  15. echo""
  16. echo "All Tools Can Be Found In The /opt Directory"
  17. echo ""
  18. sleep 2
  19. read -p "Press enter to continue"
  20. echo ""
  21. echo "Updating Your System"
  22. echo""
  23. sleep 2
  24. apt-get update -y && apt-get upgrade -y
  25. apt update -y && apt upgrade -y
  26. apt autoremove -y
  27. echo ""
  28. sleep 2
  29. echo "Installing System Dependencies"
  30. echo ""
  31. sleep 2
  32. apt --fix-broken install
  33. apt install git -y
  34. apt --fix-broken install
  35. apt install php-curl php-xml docker.io ruby-bundler golang python-pip python3 make snap fuse ruby-bundler python3-pip pipx chromium-browser dnsmasq hostapd openssl open-vm-tools-desktop build-essential libpcap-dev net-tools -y
  36. apt --fix-broken install
  37. echo ""
  38. echo "Installing Hackery Stuff"
  39. echo ""
  40. sleep 2
  41. apt install nmap wifite nikto wpscan aircrack-ng ettercap-graphical john hashcat crunch tshark macchanger recon-ng snap dhcpd lighttpd mdk4 dsniff mdk3 php-cgi xterm cewl crunch hydra sqlmap ncrack gobuster dirb wfuzz medusa netcat -y
  42. apt --fix-broken install
  43. snap install amass
  44. echo ""
  45. sleep 2
  46. echo "Installing CherryTree For Documentation"
  47. sleep 3
  48. sudo apt-get install cherrytree -y
  49. apt --fix-broken install -y
  50. echo ""
  51. echo "Creating Tool Folders"
  52. echo ""
  53. sleep 2
  54. cd /opt
  55. mkdir Initial_Access
  56. mkdir Recon
  57. mkdir Command_And_Control
  58. mkdir Social_Engineering
  59. mkdir Phishing
  60. mkdir Delivery
  61. mkdir Lateral_Movement
  62. mkdir Cloud
  63. mkdir Payload_Development
  64. mkdir Hak5_Implants
  65. mkdir Wireless
  66. mkdir Wordlists
  67. mkdir Web
  68. mkdir Virtual_Machines
  69. mkdir Staging
  70. mkdir Log_Aggregation
  71. mkdir Windows_OS
  72. echo""
  73. echo "Getting Resources"
  74. sleep 2
  75. echo ""
  76. echo "Installing Wordlists & Rule Sets"
  77. sleep 3
  78. cd /opt/Wordlists/
  79. git clone https://github.com/NotSoSecure/password_cracking_rules.git
  80. git clone https://github.com/praetorian-inc/Hob0Rules.git
  81. git clone https://github.com/danielmiessler/SecLists.git
  82. echo""
  83. echo "Installing Recon Resources"
  84. echo""
  85. sleep 2
  86. cd /opt/Recon/
  87. echo""
  88. echo "Installing RustScan"
  89. echo""
  90. sleep 2
  91. git clone https://github.com/RustScan/RustScan.git
  92. cd RustScan.git
  93. docker build -t rustscan .
  94. cd /opt/Recon/
  95. echo "Installing GitLeaks"
  96. echo ""
  97. sleep 2
  98. git clone https://github.com/zricethezav/gitleaks.git
  99. cd gitleaks/
  100. make build
  101. echo ""
  102. cd /opt/Windows_OS/
  103. mkdir Recon
  104. cd Recon/
  105. echo "Installing MFA Sweep"
  106. echo ""
  107. sleep 2
  108. git clone https://github.com/dafthack/MFASweep
  109. cd /opt/Recon/
  110. echo "Installing S3Scanner"
  111. echo ""
  112. sleep 2
  113. git clone https://github.com/sa7mon/S3Scanner.git
  114. cd S3Scanner/
  115. pip3 install -r requirements.txt
  116. python3 -m S3Scanner
  117. cd /opt/Recon/
  118. echo""
  119. echo "Installing Enum4Linux"
  120. cd /opt/Recon/
  121. echo ""
  122. sleep 2
  123. git clone https://github.com/CiscoCXSecurity/enum4linux.git
  124. echo "alias enum4linux='/opt/enum4linux/./enum4linux.pl'" >> /root/.bashrc
  125. echo ""
  126. echo "Installing Cloud_Enum"
  127. echo""
  128. sleep 2
  129. git clone https://github.com/initstring/cloud_enum.git
  130. cd cloud_enum
  131. pip3 install -r ./requirements.txt
  132. cd /opt/Recon/
  133. echo "Installing Buster"
  134. echo ""
  135. sleep 2
  136. git clone https://github.com/sham00n/buster.git
  137. cd buster/
  138. python3 setup.py install
  139. cd /opt/Repo/
  140. git clone https://github.com/initstring/linkedin2username.git
  141. echo ""
  142. echo "Installing WitnessMe"
  143. echo ""
  144. sleep 2
  145. python3 -m pip install --user pipx
  146. pipx install witnessme
  147. pipx ensurepath
  148. cd /opt/Recon/
  149. echo ""
  150. echo "Installing Pagodo"
  151. echo ""
  152. sleep 2
  153. git clone https://github.com/opsdisk/pagodo.git
  154. cd pagodo
  155. pip install -r requirements.txt
  156. cd /opt/Recon/
  157. echo ""
  158. echo "Installing AttackSurfaceMapper"
  159. echo""
  160. sleep 2
  161. git clone https://github.com/superhedgy/AttackSurfaceMapper.git
  162. cd AttackSurfaceMapper
  163. python3 -m pip install --no-cache-dir -r requirements.txt
  164. cd /opt/Recon/
  165. echo ""
  166. echo "Installing SpiderFoot"
  167. echo ""
  168. sleep 2
  169. git clone https://github.com/smicallef/spiderfoot.git
  170. cd spiderfoot
  171. pip3 install -r requirements.txt
  172. pip3 install cherrypy
  173. pip3 install cherrypy_cors
  174. pip3 install publicsuffixlist
  175. pip3 install networkx
  176. pip3 install openpyxl
  177. cd /opt/Recon/
  178. echo""
  179. echo "Installing DNScan"
  180. echo ""
  181. sleep 2
  182. git clone https://github.com/rbsec/dnscan.git
  183. cd dnscan
  184. pip3 install -r requirements.txt
  185. pip3 install setuptools
  186. cd /opt/Recon/
  187. echo""
  188. echo "Installing SpoofCheck"
  189. echo""
  190. sleep 2
  191. git clone https://github.com/BishopFox/spoofcheck.git
  192. cd spoofcheck
  193. pip3 install -r requirements.txt
  194. cd /opt/Recon/
  195. echo ""
  196. echo "Installing LinkedInt"
  197. echo""
  198. sleep 2
  199. git clone https://github.com/vysecurity/LinkedInt.git
  200. cd LinkedInt
  201. pip3 install -r requirements.txt
  202. cd /opt/Recon/
  203. echo ""
  204. echo "Installing EyeWitness"
  205. echo ""
  206. sleep 2
  207. git clone https://github.com/ChrisTruncer/EyeWitness.git
  208. cd EyeWitness/Python/setup
  209. bash setup.sh
  210. cd /opt/Recon/
  211. echo""
  212. echo "Installing Aquatone"
  213. echo ""
  214. sleep 2
  215. mkdir Aquatone
  216. cd Aquatone/
  217. wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
  218. unzip aquatone_linux_amd64_1.7.0.zip
  219. cd /opt/Recon/
  220. echo""
  221. echo "Installing DNSrecon"
  222. echo ""
  223. sleep 2
  224. git clone https://github.com/darkoperator/dnsrecon.git
  225. cd dnsrecon
  226. pip install -r requirements.txt
  227. python setup.py install
  228. cd /opt/Recon/
  229. echo ""
  230. echo "Installing Social Mapper"
  231. echo ""
  232. sleep 2
  233. git clone https://github.com/SpiderLabs/social_mapper.git
  234. cd /social_mapper/setup/
  235. pip install -r requirements.txt
  236. echo""
  237. cd /opt/Recon/
  238. echo "Installing theHarvester"
  239. echo ""
  240. sleep 2
  241. git clone https://github.com/laramies/theHarvester.git
  242. cd theHarvester/
  243. pip3 install aiohttp
  244. pip3 install aiomultiprocess
  245. python3 -m pip install -r requirements/base.txt
  246. python3 setup.py install
  247. cd /opt/Recon/
  248. echo ""
  249. echo "Installing Metagoofil"
  250. echo ""
  251. sleep 2
  252. git clone https://github.com/laramies/metagoofil.git
  253. echo""
  254. echo "Installing TruffleHog"
  255. echo ""
  256. sleep 2
  257. git clone https://github.com/dxa4481/truffleHog.git
  258. cd trufflehog; go install
  259. cd /opt/Recon/
  260. echo""
  261. echo "Installing Pwned0rNot -- API KEY REQUIRE"
  262. git clone https://github.com/thewhiteh4t/pwnedOrNot.git
  263. cd pwnedOrNot
  264. chmod +x install.sh
  265. ./install.sh
  266. cd /opt/Recon/
  267. echo""
  268. echo "Installing GitHarvester"
  269. echo ""
  270. sleep 2
  271. git clone https://github.com/metac0rtex/GitHarvester.git
  272. echo ""
  273. echo "Cloning Initial Access Resources"
  274. echo ""
  275. sleep 2
  276. ###Break For Recon Folder###
  277. cd /opt/Initial_Access
  278. echo "Installing Initial Access Tools"
  279. echo ""
  280. sleep 2
  281. echo "Installing Spraying Toolkit"
  282. echo ""
  283. sleep 2
  284. git clone https://github.com/byt3bl33d3r/SprayingToolkit.git
  285. cd SprayingToolkit/
  286. pip3 install -r requirements.txt
  287. cd /opt/Initial_Access
  288. echo ""
  289. sleep 2
  290. echo "Installing O365 Recon"
  291. echo ""
  292. git clone https://github.com/nyxgeek/o365recon.git
  293. echo ""
  294. sleep 2
  295. echo "Installing TREVORspray"
  296. echo ""
  297. sleep 2
  298. git clone https://github.com/blacklanternsecurity/TREVORspray.git
  299. cd TREVORspray/
  300. pip3 install -r requirements.txt
  301. sleep 2
  302. ###Break Initial Access###
  303. echo ""
  304. echo "Installing Payload Development Resources"
  305. echo ""
  306. sleep 2
  307. cd /opt/Payload_Development
  308. echo "Installing Unicorn"
  309. git clone https://github.com/trustedsec/unicorn.git
  310. echo""
  311. echo "Installing Demiguise"
  312. echo ""
  313. sleep 2
  314. git clone https://github.com/nccgroup/demiguise.git
  315. echo ""
  316. echo "Installing The Backdoor Factory"
  317. echo ""
  318. docker pull secretsquirrel/the-backdoor-factory
  319. echo ""
  320. sleep 2
  321. echo "Installing Avet"
  322. echo ""
  323. git clone https://github.com/govolution/avet.git
  324. cd avet
  325. bash setup.sh
  326. cd /opt/Payload_Development/
  327. sleep 2
  328. echo ""
  329. echo "Installing MetaTwin"
  330. git clone https://github.com/threatexpress/metatwin.git
  331. echo ""
  332. sleep 2
  333. echo "Installing PSAmsi"
  334. git clone https://github.com/cobbr/PSAmsi.git
  335. sleep 2
  336. echo ""
  337. echo "Worse-PDF"
  338. echo ""
  339. git clone https://github.com/3gstudent/Worse-PDF.git
  340. echo ""
  341. sleep 2
  342. echo "Installing Ivy"
  343. echo ""
  344. git clone https://github.com/optiv/Ivy.git
  345. cd Ivy
  346. go get github.com/fatih/color
  347. go get github.com/KyleBanks/XOREncryption/Go
  348. go build Ivy.go
  349. echo ""
  350. cd /opt/Payload_Development/
  351. echo "Installing PEzor"
  352. echo ""
  353. git clone https://github.com/phra/PEzor.git
  354. cd PEzor/
  355. bash install.sh
  356. echo ""
  357. #read -p "Open A New Terminal And Export The Path For PEzor To Work!"
  358. echo ""
  359. sleep 2
  360. echo "Installing ScareCrow"
  361. echo""
  362. cd /opt/Payload_Development/
  363. git clone https://github.com/optiv/ScareCrow.git
  364. cd ScareCrow/
  365. go get github.com/fatih/color
  366. go get github.com/yeka/zip
  367. go get github.com/josephspurrier/goversioninfo
  368. apt install openssl -y
  369. apt install osslsigncode -y
  370. apt install mingw-w64 -y
  371. go build ScareCrow.go
  372. cd /opt/Payload_Development/
  373. echo ""
  374. sleep 2
  375. echo "Installing Donut"
  376. echo ""
  377. git clone https://github.com/TheWover/donut.git
  378. cd donut/
  379. python3 setup.py install
  380. cd /opt/Payload_Development
  381. mkdir MAC_OS
  382. cd MAC_OS
  383. echo ""
  384. sleep 2
  385. echo "Installing Mystikal"
  386. echo ""
  387. git clone https://github.com/D00MFist/Mystikal.git
  388. cd /opt/Payload_Development/
  389. echo ""
  390. sleep 2
  391. cd /opt/Windows_OS
  392. echo "Installing GadgetToJscript"
  393. git clone https://github.com/med0x2e/GadgetToJScript.git
  394. echo ""
  395. cd /opt/Payload_Development/
  396. echo "Installing Charlotte"
  397. git clone https://github.com/9emin1/charlotte.git
  398. echo ""
  399. cd /opt/Payload_Development/
  400. echo "Installing Invisibility Cloak"
  401. git clone https://github.com/xforcered/InvisibilityCloak.git
  402. echo ""
  403. cd /opt/Windows_OS/
  404. echo "Installing Dendrobate"
  405. echo ""
  406. git clone https://github.com/FuzzySecurity/Dendrobate.git
  407. echo ""
  408. sleep 2
  409. cd /opt/Payload_Development/
  410. echo "Installing Offensive-VBA-and-XLS-Entanglement"
  411. echo ""
  412. git clone https://github.com/BC-SECURITY/Offensive-VBA-and-XLS-Entanglement.git
  413. sleep 2
  414. echo ""
  415. echo "Installing xlsGen"
  416. echo ""
  417. sleep 2
  418. git clone https://github.com/aaaddress1/xlsGen.git
  419. echo ""
  420. echo "Installing DarkArmour"
  421. echo ""
  422. sleep 2
  423. git clone https://github.com/bats3c/darkarmour.git
  424. sudo apt install mingw-w64-tools mingw-w64-common g++-mingw-w64 gcc-mingw-w64 upx-ucl osslsigncode -y
  425. echo ""
  426. echo "Installing InlineWhispers"
  427. echo""
  428. sleep 2
  429. git clone https://github.com/outflanknl/InlineWhispers.git
  430. echo ""
  431. cd /opt/Windows_OS/
  432. echo "Installing EvilClippy"
  433. echo ""
  434. sleep 2
  435. git clone https://github.com/outflanknl/EvilClippy.git
  436. echo ""
  437. echo "Installing OfficePurge"
  438. echo ""
  439. git clone https://github.com/fireeye/OfficePurge.git
  440. sleep 2
  441. echo ""
  442. echo "Installing ThreatCheck"
  443. echo ""
  444. git clone https://github.com/rasta-mouse/ThreatCheck.git
  445. echo ""
  446. echo "Ruler"
  447. echo ""
  448. sleep 2
  449. git clone https://github.com/sensepost/ruler.git
  450. echo ""
  451. echo "Installing DueDLLigence"
  452. echo ""
  453. sleep 2
  454. git clone https://github.com/fireeye/DueDLLigence.git
  455. echo ""
  456. echo "Installing RuralBishop"
  457. echo ""
  458. sleep 2
  459. git clone https://github.com/rasta-mouse/RuralBishop.git
  460. echo ""
  461. echo "Installing TikiTorch"
  462. echo ""
  463. sleep 2
  464. git clone https://github.com/rasta-mouse/TikiTorch.git
  465. echo ""
  466. echo "Installing SharpShooter"
  467. echo ""
  468. sleep 2
  469. git clone https://github.com/mdsecactivebreach/SharpShooter.git
  470. echo ""
  471. echo "Installing SharpSploit"
  472. echo ""
  473. sleep 2
  474. git clone https://github.com/cobbr/SharpSploit.git
  475. echo ""
  476. echo "Installing MSBuildAPICaller"
  477. echo ""
  478. sleep 2
  479. git clone https://github.com/rvrsh3ll/MSBuildAPICaller.git
  480. echo ""
  481. echo "Installing Macro_Pack"
  482. echo ""
  483. sleep 2
  484. git clone https://github.com/sevagas/macro_pack.git
  485. echo ""
  486. echo "Installing Inceptor"
  487. echo ""
  488. sleep 2
  489. git clone https://github.com/klezVirus/inceptor.git
  490. echo ""
  491. echo "Installing Mortar"
  492. echo ""
  493. sleep 2
  494. git clone https://github.com/0xsp-SRD/mortar.git
  495. echo ""
  496. echo "Installing RedTeamCCode"
  497. echo ""
  498. sleep 2
  499. git clone https://github.com/Mr-Un1k0d3r/RedTeamCCode.git
  500. echo ""
  501. sleep 2
  502. ###Break For Payload Development###
  503. echo "Cloning Delivery Resources"
  504. echo ""
  505. cd /opt/Delivery/
  506. echo ""
  507. echo "Installing O365 Attack Toolkit"
  508. echo ""
  509. sleep 2
  510. git clone https://github.com/mdsecactivebreach/o365-attack-toolkit.git
  511. echo ""
  512. sleep 2
  513. echo ""
  514. echo "Installing BEEF"
  515. echo ""
  516. sleep 2
  517. git clone https://github.com/beefproject/beef.git
  518. cd beef
  519. bundle install
  520. ./install
  521. echo ""
  522. ###Break For Delivery###
  523. echo "Cloning Your C2 Resources"
  524. echo ""
  525. cd /opt/Command_And_Control/
  526. echo "Cloning C2 Frameworks"
  527. echo ""
  528. echo "Installing Empire & Starkiller"
  529. echo ""
  530. sleep 2
  531. git clone https://github.com/BC-SECURITY/Empire.git
  532. version=$(lsb_release -sr)
  533. cd Empire/
  534. find ./ -type f -print0 | xargs -0 sed -i "s/20.04/${version}/g"
  535. find ./ -type f -print0 | xargs -0 sed -i "s/18.04/${version}/g"
  536. find ./ -type f -print0 | xargs -0 sed -i "s/21.04/${version}/g"
  537. find ./ -type f -print0 | xargs -0 sed -i "s/21.10/${version}/g"
  538. find ./ -type f -print0 | xargs -0 sed -i "s/16.04/${version}/g"
  539. find ./ -type f -print0 | xargs -0 sed -i "s/22.04/${version}/g"
  540. cd setup/
  541. bash install.sh
  542. cd ../
  543. sudo wget https://github.com/BC-SECURITY/Starkiller/releases/download/v1.8.0/starkiller-1.8.0.AppImage
  544. sudo chmod +x starkiller-1.8.0.AppImage
  545. echo""
  546. sleep 2
  547. cd /opt/Command_And_Control/
  548. echo "Installing PoshC2"
  549. echo ""
  550. git clone https://github.com/nettitude/PoshC2.git
  551. cd PoshC2/
  552. bash Install.sh
  553. cd /opt/Command_And_Control/
  554. echo ""
  555. echo "Installing Merlin C2"
  556. echo ""
  557. sleep 2
  558. git clone https://github.com/Ne0nd0g/merlin.git
  559. cd merlin/
  560. go build
  561. cd /opt/Command_And_Control/
  562. echo ""
  563. echo "Installing Mythic"
  564. echo ""
  565. sleep 2
  566. git clone https://github.com/its-a-feature/Mythic.git
  567. cd Mythic/
  568. ./install_docker_ubuntu.sh
  569. echo ""
  570. cd /opt/Command_And_Control/
  571. echo ""
  572. echo "Installing Covenant With Random Profile"
  573. echo ""
  574. echo "Enter A Random Word!"
  575. read Random1
  576. echo ""
  577. echo "Enter A Different Random Word!"
  578. read Random2
  579. echo ""
  580. echo "Enter A Different Random Word!"
  581. read Random3
  582. custom1=$(echo $custom1 | md5sum | head -c 20)
  583. cd /opt/Command_And_Control/
  584. sudo git clone --recurse-submodules https://github.com/ZeroPointSecurity/Covenant.git
  585. cd /opt/Command_And_Control/Covenant/Covenant/
  586. wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
  587. sudo dpkg -i packages-microsoft-prod.deb
  588. sudo apt-get update -y
  589. apt --fix-broken install -y
  590. sudo apt-get install apt-transport-https -y
  591. apt --fix-broken install -y
  592. sudo apt-get update -y
  593. apt --fix-broken install -y
  594. sudo apt-get install dotnet-sdk-3.1 -y
  595. apt --fix-broken install -y
  596. mv ./Data/AssemblyReferences/ ../AssemblyReferences/
  597. mv ./Data/ReferenceSourceLibraries/ ../ReferenceSourceLibraries/
  598. mv ./Data/EmbeddedResources/ ../EmbeddedResources/
  599. mv ./Models/Covenant/ ./Models/${Random1^}/
  600. mv ./Components/CovenantUsers/ ./Components/${Random1^}Users/
  601. mv ./Components/Grunts/ ./Components/${Random2^}s/
  602. mv ./Models/Grunts/ ./Models/${Random2^}s/
  603. mv ./Data/Grunt/GruntBridge/ ./Data/Grunt/${Random2^}Bridge/
  604. mv ./Data/Grunt/GruntHTTP/ ./Data/Grunt/${Random2^}HTTP/
  605. mv ./Data/Grunt/GruntSMB/ ./Data/Grunt/${Random2^}SMB/
  606. mv ./Components/GruntTaskings/ ./Components/${Random2^}Taskings/
  607. mv ./Components/GruntTasks/ ./Components/${Random2^}Tasks/
  608. mv ./Data/Grunt/ ./Data/${Random2^}/
  609. find ./ -type f -print0 | xargs -0 sed -i "s/Grunt/${Random2^}/g"
  610. find ./ -type f -print0 | xargs -0 sed -i "s/GRUNT/${Random2^^}/g"
  611. find ./ -type f -print0 | xargs -0 sed -i "s/grunt/${Random2,,}/g"
  612. #find ./ -type f -print0 | xargs -0 sed -i "s/covenant/${Random1,,}/g"
  613. find ./ -type f -print0 | xargs -0 sed -i "s/Covenant/${Random1^}/g"
  614. find ./ -type f -print0 | xargs -0 sed -i "s/COVENANT/${Random1^^}/g"
  615. find ./ -type f -print0 | xargs -0 sed -i "s/ExecuteStager/ExecLevel/g"
  616. #find ./ -type f -print0 | xargs -0 sed -i "s/REPLACE_PROFILE/REP_PROF/g"
  617. #find ./ -type f -print0 | xargs -0 sed -i "s/REPLACE_PIPE/REP_PIP/g"
  618. #find ./ -type f -print0 | xargs -0 sed -i "s/GUID/ANGID/g"
  619. find ./ -type f -print0 | xargs -0 sed -i "s/SetupAES/Install"${custom1}"AES/g"
  620. find ./ -type f -print0 | xargs -0 sed -i "s/SessionKey/Sess"${custom1}"KEy/g"
  621. find ./ -type f -print0 | xargs -0 sed -i "s/EncryptedChallenge/Enc"${custom1}"ChallEnge/g"
  622. find ./ -type f -print0 | xargs -0 sed -i "s/DecryptedChallenges/Decrypt"${custom1}"ChallEnges/g"
  623. find ./ -type f -print0 | xargs -0 sed -i "s/Stage0Body/First"${custom1}"Body/g"
  624. find ./ -type f -print0 | xargs -0 sed -i "s/Stage0Response/First"${custom1}"Response/g"
  625. find ./ -type f -print0 | xargs -0 sed -i "s/Stage0Bytes/First"${custom1}"Bytes/g"
  626. find ./ -type f -print0 | xargs -0 sed -i "s/Stage1Body/Seccond"${custom1}"Body/g"
  627. find ./ -type f -print0 | xargs -0 sed -i "s/Stage1Response/Seccond"${custom1}"Response/g"
  628. find ./ -type f -print0 | xargs -0 sed -i "s/Stage1Bytes/Seccond"${custom1}"Bytes/g"
  629. find ./ -type f -print0 | xargs -0 sed -i "s/Stage2Body/Third"${custom1}"Body/g"
  630. find ./ -type f -print0 | xargs -0 sed -i "s/Stage2Response/Third"${custom1}"Response/g"
  631. find ./ -type f -print0 | xargs -0 sed -i "s/Stage2Bytes/Third"${custom1}"Bytes/g"
  632. find ./ -type f -print0 | xargs -0 sed -i "s/message64str/messAgE"${custom1}"64str/g"
  633. find ./ -type f -print0 | xargs -0 sed -i "s/messageBytes/messAgE"${custom1}"bytes/g"
  634. find ./ -type f -print0 | xargs -0 sed -i "s/totalReadBytes/ToTal"${custom1}"ReaDBytes/g"
  635. #find ./ -type f -print0 | xargs -0 sed -i "s/inputStream/instream/g"
  636. #find ./ -type f -print0 | xargs -0 sed -i "s/outputStream/outstream/g"
  637. find ./ -type f -print0 | xargs -0 sed -i "s/deflateStream/deFlatE"${custom1}"stream/g"
  638. find ./ -type f -print0 | xargs -0 sed -i "s/memoryStream/memOrYstream/g" #don't change
  639. find ./ -type f -print0 | xargs -0 sed -i "s/compressedBytes/packed"${custom1}"bytes/g"
  640. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/REPLACE_/REP"${custom1}"_/g"
  641. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/_PROFILE_/_PROF"${custom1}"_/g"
  642. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/_VALIDATE_/_VA"${custom1}"L_/g"
  643. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/GUID/${Random3^^}/g"
  644. find ./ -type f -name "*.razor" -print0 | xargs -0 sed -i "s/GUID/${Random3^^}/g"
  645. find ./ -type f -name "*.json" -print0 | xargs -0 sed -i "s/GUID/${Random3^^}/g"
  646. find ./ -type f -name "*.yaml" -print0 | xargs -0 sed -i "s/GUID/${Random3^^}/g"
  647. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/guid/${Random3,,}/g"
  648. find ./ -type f -name "*.razor" -print0 | xargs -0 sed -i "s/guid/${Random3,,}/g"
  649. find ./ -type f -name "*.json" -print0 | xargs -0 sed -i "s/guid/${Random3,,}/g"
  650. find ./ -type f -name "*.yaml" -print0 | xargs -0 sed -i "s/guid/${Random3,,}/g"
  651. find ./ -type f -print0 | xargs -0 sed -i "s/ProfileHttp/Prof"${custom1}"HTTP/g"
  652. find ./ -type f -print0 | xargs -0 sed -i "s/baseMessenger/bAse"${custom1}"mEsSenger/g"
  653. find ./ -type f -print0 | xargs -0 sed -i "s/PartiallyDecrypted/Part"${custom1}"decrypted/g"
  654. find ./ -type f -print0 | xargs -0 sed -i "s/FullyDecrypted/Fulld"${custom1}"ecrypted/g"
  655. find ./ -type f -print0 | xargs -0 sed -i "s/compressedBytes/packed"${custom1}"bytes/g"
  656. find ./ -type f -print0 | xargs -0 sed -i "s/CookieWebClient/Ottos"${custom1}"WebClient/g"
  657. #find ./ -type f -print0 | xargs -0 sed -i "s/CookieContainer/KekseContains/g"
  658. #find ./ -type f -print0 | xargs -0 sed -i "s/GetWebRequest/DoAnWebReq/g"
  659. find ./ -type f -print0 | xargs -0 sed -i "s/Jitter/JIt"${custom1}"ter/g"
  660. find ./ -type f -print0 | xargs -0 sed -i "s/ConnectAttempts/ConneCT"${custom1}"AttEmpts/g"
  661. find ./ -type f -print0 | xargs -0 sed -i "s/RegisterBody/Reg"${custom1}"Body/g"
  662. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/messenger/meSsenGer"${custom1}"/g"
  663. find ./ -type f -print0 | xargs -0 sed -i "s/Hello World/"${custom1}"/g"
  664. find ./ -type f -print0 | xargs -0 sed -i "s/ValidateCert/Val"${custom1}"CerT/g"
  665. find ./ -type f -print0 | xargs -0 sed -i "s/UseCertPinning/UsCert"${custom1}"Pin/g"
  666. find ./ -type f -print0 | xargs -0 sed -i "s/EncryptedMessage/Enc"${custom1}"Msg/g"
  667. find ./ -type f -print0 | xargs -0 sed -i "s/cookieWebClient/"${custom1}"WebClient/g" #ottos
  668. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/aes/crypt"${custom1}"var/g"
  669. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/aes2/crypt"${custom1}"var2/g"
  670. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array5/ar"${custom1}"r5/g"
  671. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array6/ar"${custom1}"r6/g"
  672. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array4/ar"${custom1}"r4/g"
  673. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array7/ar"${custom1}"r7/g"
  674. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array1/ar"${custom1}"r1/g"
  675. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array2/ar"${custom1}"r2/g"
  676. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/array3/ar"${custom1}"r3/g"
  677. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/list1/l"${custom1}"i1/g"
  678. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/list2/l"${custom1}"i2/g"
  679. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/list3/l"${custom1}"i3/g"
  680. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/list4/l"${custom1}"i4/g"
  681. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/list5/l"${custom1}"i5/g"
  682. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group0/gr"${custom1}"p0/g"
  683. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group1/gr"${custom1}"p1/g"
  684. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group2/gr"${custom1}"p2/g"
  685. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group3/gr"${custom1}"p3/g"
  686. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group4/gr"${custom1}"p4/g"
  687. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group5/gr"${custom1}"p5/g"
  688. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group6/gr"${custom1}"p6/g"
  689. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group7/gr"${custom1}"p7/g"
  690. find ./ -type f -name "*.cs" -print0 | xargs -0 sed -i "s/group8/gr"${custom1}"p8/g"
  691. find ./ -type f -name "*Grunt*" | while read FILE ; do
  692. newfile="$(echo ${FILE} |sed -e "s/Grunt/${Random2^}/g")";
  693. mv "${FILE}" "${newfile}";
  694. done
  695. find ./ -type f -name "*GRUNT*" | while read FILE ; do
  696. newfile="$(echo ${FILE} |sed -e "s/GRUNT/${Random2^^}/g")";
  697. mv "${FILE}" "${newfile}";
  698. done
  699. find ./ -type f -name "*grunt*" | while read FILE ; do
  700. newfile="$(echo ${FILE} |sed -e "s/grunt/${Random2,,}/g")";
  701. mv "${FILE}" "${newfile}";
  702. done
  703. find ./ -type f -name "*Covenant*" | while read FILE ; do
  704. newfile="$(echo ${FILE} |sed -e "s/Covenant/${Random1^}/g")";
  705. mv "${FILE}" "${newfile}";
  706. done
  707. find ./ -type f -name "*COVENANT*" | while read FILE ; do
  708. newfile="$(echo ${FILE} |sed -e "s/COVENANT/${Random2^^}/g")";
  709. mv "${FILE}" "${newfile}";
  710. done
  711. #find ./ -type f -name "*covenant*" | while read FILE ; do
  712. # newfile="$(echo ${FILE} |sed -e "s/covenant/ottocommand/g")";
  713. # mv "${FILE}" "${newfile}";
  714. #done
  715. mv ../AssemblyReferences/ ./Data/
  716. mv ../ReferenceSourceLibraries/ ./Data/
  717. mv ../EmbeddedResources/ ./Data/
  718. dotnet build
  719. echo ""
  720. cd /opt/Command_And_Control/
  721. echo "Installing Shad0w"
  722. echo ""
  723. sleep 2
  724. git clone https://github.com/bats3c/shad0w.git
  725. cd shad0w/
  726. bash install.sh
  727. echo ""
  728. cd /opt/Command_And_Control/
  729. echo "Installing Sliver"
  730. echo ""
  731. sleep 2
  732. git clone https://github.com/BishopFox/sliver.git
  733. cd sliver/
  734. python3 build.py
  735. cd /opt/Command_And_Control
  736. echo ""
  737. echo "Installing SilentTrinity"
  738. echo ""
  739. sleep 2
  740. git clone https://github.com/byt3bl33d3r/SILENTTRINITY.git
  741. cd SILENTTRINITY/
  742. pip3 install -r requirements.txt
  743. cd /opt/Command_And_Control/
  744. echo ""
  745. echo "Installing Pupy C2"
  746. echo ""
  747. sleep 2
  748. git clone https://github.com/n1nj4sec/pupy.git
  749. echo ""
  750. echo "Installing Metasploit"
  751. sleep 2
  752. echo ""
  753. apt install postgresql -y
  754. systemctl start postgresql
  755. systemctl enable postgresql
  756. apt install curl -y
  757. apt --fix-broken install -y
  758. cd /opt/Command_And_Control/
  759. curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
  760. chmod +x msfinstall
  761. ./msfinstall
  762. apt --fix-broken install -y
  763. echo ""
  764. ###Break For C2 Frameworks###
  765. echo "Cloning Staging Resources"
  766. echo ""
  767. cd /opt/Staging/
  768. echo""
  769. echo "Installing PwnDrop"
  770. git clone https://github.com/kgretzky/pwndrop.git
  771. cd pwndrop/
  772. go build
  773. cd /opt/Staging
  774. echo ""
  775. echo "Installing C2 Concealer"
  776. echo ""
  777. sleep 2
  778. git clone https://github.com/FortyNorthSecurity/C2concealer.git
  779. cd C2concealer/
  780. bash install.sh
  781. cd /opt/Staging/
  782. echo ""
  783. echo "Installing FindFrontableDomains"
  784. echo ""
  785. sleep 2
  786. git clone https://github.com/rvrsh3ll/FindFrontableDomains.git
  787. cd FindFrontableDomains/
  788. bash install.sh
  789. echo ""
  790. echo "Installing DomainHunter"
  791. echo ""
  792. cd /opt/Staging/
  793. sleep 2
  794. git clone https://github.com/threatexpress/domainhunter.git
  795. cd domainhunter/
  796. pip3 install -r requirements.txt
  797. echo ""
  798. cd /opt/Staging/
  799. echo "Installing RedWarden"
  800. echo ""
  801. sleep 2
  802. git clone https://github.com/mgeeky/RedWarden.git
  803. cd RedWarden/
  804. pip3 install -r requirements.txt
  805. cd /opt/Staging/
  806. echo ""
  807. echo "Installing AzureC2Relay"
  808. echo ""
  809. sleep 2
  810. git clone https://github.com/Flangvik/AzureC2Relay.git
  811. echo ""
  812. echo "Installing C3"
  813. echo ""
  814. sleep 2
  815. cd /opt/Windows_OS
  816. git clone https://github.com/FSecureLABS/C3.git
  817. echo ""
  818. cd /opt/Staging/
  819. echo "Installing Chameleon"
  820. echo ""
  821. sleep 2
  822. git clone https://github.com/mdsecactivebreach/Chameleon.git
  823. cd Chameleon/
  824. pip3 install -r requirements.txt
  825. cd /opt/Staging/
  826. echo ""
  827. echo "Installing Redirect Rules"
  828. echo ""
  829. sleep 2
  830. git clone https://github.com/0xZDH/redirect.rules.git
  831. cd redirect.rules/
  832. bash setup.sh
  833. echo ""
  834. echo "Installing Log Aggregation Resources"
  835. echo ""
  836. sleep 2
  837. cd /opt/Log_Aggregation
  838. echo ""
  839. echo "Installing RedELK"
  840. echo ""
  841. sleep 2
  842. git clone https://github.com/outflanknl/RedELK.git
  843. echo ""
  844. echo "Installing RedTeamSIEM"
  845. echo ""
  846. sleep 2
  847. git clone https://github.com/SecurityRiskAdvisors/RedTeamSIEM.git
  848. echo ""
  849. echo "Installing Situational Awareness Resources"
  850. echo ""
  851. sleep 2
  852. cd /opt/Windows_OS
  853. mkdir Situational_Awareness
  854. cd Situational_Awareness/
  855. echo ""
  856. echo "Installing AggressiveProxy"
  857. echo ""
  858. sleep 2
  859. git clone https://github.com/EncodeGroup/AggressiveProxy.git
  860. echo ""
  861. echo "Installing Gopher"
  862. echo ""
  863. sleep 2
  864. git clone https://github.com/EncodeGroup/Gopher.git
  865. echo ""
  866. echo "Installing SharpEDRChecker"
  867. echo ""
  868. sleep 2
  869. git clone https://github.com/PwnDexter/SharpEDRChecker.git
  870. echo ""
  871. echo "Installing CS-Situational-Awareness-BOF"
  872. echo ""
  873. sleep 2
  874. git clone https://github.com/trustedsec/CS-Situational-Awareness-BOF.git
  875. echo ""
  876. echo "Installing Seatbelt"
  877. echo ""
  878. sleep 2
  879. git clone https://github.com/GhostPack/Seatbelt.git
  880. echo ""
  881. echo "Installing SauronEye"
  882. echo ""
  883. sleep 2
  884. git clone https://github.com/vivami/SauronEye.git
  885. echo ""
  886. echo "Installing SharpShares"
  887. echo ""
  888. sleep 2
  889. git clone https://github.com/mitchmoser/SharpShares.git
  890. echo ""
  891. echo "Installing SharpAppLocker"
  892. echo ""
  893. sleep2
  894. git clone https://github.com/Flangvik/SharpAppLocker/.git
  895. echo ""
  896. echo "Installing SharpPrinter"
  897. echo ""
  898. sleep 2
  899. git clone https://github.com/rvrsh3ll/SharpPrinter.git
  900. echo ""
  901. echo "Installing Standin"
  902. echo ""
  903. git clone https://github.com/FuzzySecurity/StandIn.git
  904. echo ""
  905. echo "Installing Recon-AD"
  906. echo ""
  907. sleep 2
  908. git clone https://github.com/outflanknl/Recon-AD.git
  909. echo ""
  910. echo "Cloning BloodHound For Windows"
  911. echo ""
  912. sleep 2
  913. git clone https://github.com/BloodHoundAD/BloodHound.git
  914. echo ""
  915. echo "Installing PSPKIAudit"
  916. echo ""
  917. sleep 2
  918. git clone https://github.com/GhostPack/PSPKIAudit.git
  919. echo ""
  920. echo "Installing SharpView"
  921. echo ""
  922. sleep 2
  923. git clone https://github.com/tevora-threat/SharpView.git
  924. echo ""
  925. echo "Installing Rubeus"
  926. echo ""
  927. sleep 2
  928. git clone https://github.com/GhostPack/Rubeus.git
  929. echo ""
  930. echo "Installing Grouper"
  931. echo ""
  932. sleep 2
  933. git clone https://github.com/l0ss/Grouper.git
  934. echo ""
  935. echo "Installing ImproHound"
  936. echo ""
  937. sleep 2
  938. git clone https://github.com/improsec/ImproHound.git
  939. echo ""
  940. echo "Installing ADRecon"
  941. echo ""
  942. sleep 2
  943. git clone https://github.com/adrecon/ADRecon.git
  944. echo ""
  945. echo "Installing ADCSPwn"
  946. echo ""
  947. sleep2
  948. git clone https://github.com/bats3c/ADCSPwn.git
  949. echo ""
  950. echo "Cloning Credential Dumping Resource"
  951. echo ""
  952. sleep 2
  953. cd /opt/Windows_OS
  954. mkdir Credential_Dumping
  955. cd Credential_Dumping/
  956. echo ""
  957. echo "Cloning Mimikatz"
  958. echo ""
  959. sleep2
  960. git clone https://github.com/gentilkiwi/mimikatz.git
  961. echo ""
  962. echo "Cloning Dumpert"
  963. echo ""
  964. sleep 2
  965. git clone https://github.com/outflanknl/Dumpert.git
  966. echo ""
  967. echo "Cloning SharpLAPS"
  968. echo ""
  969. sleep 2
  970. git clone https://github.com/swisskyrepo/SharpLAPS.git
  971. echo ""
  972. echo "Cloning SharpDPAPI"
  973. echo ""
  974. sleep 2
  975. git clone https://github.com/GhostPack/SharpDPAPI.git
  976. echo ""
  977. echo "Cloning KeeThief"
  978. echo ""
  979. sleep 2
  980. git clone https://github.com/GhostPack/KeeThief.git
  981. echo ""
  982. echo "Cloning SafetyKatz"
  983. echo ""
  984. sleep 2
  985. git clone https://github.com/GhostPack/SafetyKatz.git
  986. echo ""
  987. echo "Cloning Forkatz"
  988. echo ""
  989. sleep 2
  990. git clone https://github.com/Barbarisch/forkatz.git
  991. echo ""
  992. echo "Cloning PPLKiller"
  993. echo ""
  994. sleep 2
  995. git clone https://github.com/RedCursorSecurityConsulting/PPLKiller.git
  996. echo ""
  997. echo "Cloning LaZagne"
  998. echo ""
  999. sleep 2
  1000. git clone https://github.com/AlessandroZ/LaZagne.git
  1001. echo ""
  1002. echo "Cloning AndrewSpecial"
  1003. echo ""
  1004. sleep 2
  1005. git clone https://github.com/hoangprod/AndrewSpecial.git
  1006. echo ""
  1007. echo "Cloning Net-GPPassword"
  1008. echo ""
  1009. sleep 2
  1010. git clone https://github.com/outflanknl/Net-GPPPassword.git
  1011. echo ""
  1012. echo "Cloning SharpChromium"
  1013. echo ""
  1014. sleep 2
  1015. git clone https://github.com/djhohnstein/SharpChromium.git
  1016. echo ""
  1017. echo "Cloning Chlonium"
  1018. echo ""
  1019. sleep 2
  1020. git clone https://github.com/rxwx/chlonium.git
  1021. echo ""
  1022. echo "Cloning SharpCloud"
  1023. echo ""
  1024. sleep 2
  1025. git clone https://github.com/chrismaddalena/SharpCloud.git
  1026. echo ""
  1027. echo "Cloning PypyKatz"
  1028. echo ""
  1029. sleep 2
  1030. git clone https://github.com/skelsec/pypykatz.git
  1031. echo ""
  1032. echo "Cloning NanoDump"
  1033. echo ""
  1034. sleep 2
  1035. git clone https://github.com/helpsystems/nanodump.git
  1036. echo ""
  1037. sleep 2
  1038. echo "Installing Privilege Escalation Resources"
  1039. echo ""
  1040. cd /opt/Windows_OS/
  1041. mkdir Privilege_Escalation
  1042. cd Privilege_Escalation/
  1043. echo ""
  1044. echo "Installing ElevateKit"
  1045. echo ""
  1046. sleep 2
  1047. git clone https://github.com/rsmudge/ElevateKit.git
  1048. echo ""
  1049. echo "Cloning Watson"
  1050. cd /opt/Windows_OS/
  1051. mkdir Privilege_Escalation/
  1052. cd Privilege_Escalation/
  1053. echo ""
  1054. sleep 2
  1055. git clone https://github.com/rasta-mouse/Watson.git
  1056. echo ""
  1057. echo "Cloning SharpUp"
  1058. echo ""
  1059. sleep 2
  1060. git clone https://github.com/GhostPack/SharpUp.git
  1061. echo ""
  1062. echo "Cloning dazzleUp"
  1063. echo ""
  1064. sleep 2
  1065. git clone https://github.com/hlldz/dazzleUP.git
  1066. echo ""
  1067. echo "Cloning PEASS-ng"
  1068. echo ""
  1069. sleep 2
  1070. git clone https://github.com/carlospolop/PEASS-ng.git
  1071. echo ""
  1072. echo "Cloning SweetPotato"
  1073. echo ""
  1074. sleep 2
  1075. git clone https://github.com/CCob/SweetPotato.git
  1076. echo ""
  1077. echo "Cloning MultiPotato"
  1078. echo ""
  1079. git clone https://github.com/S3cur3Th1sSh1t/MultiPotato.git
  1080. echo ""
  1081. echo "Cloning Defense Evasion Resources -- This is all Windows Based"
  1082. echo ""
  1083. sleep 2
  1084. cd /opt/Windows_OS/
  1085. mkdir Defense_Evasion
  1086. cd Defense_Evasion/
  1087. git clone https://github.com/hlldz/RefleXXion.git
  1088. git clone https://github.com/wavestone-cdt/EDRSandblast.git
  1089. git clone https://github.com/APTortellini/unDefender.git
  1090. git clone https://github.com/Yaxser/Backstab.git
  1091. git clone https://github.com/boku7/spawn.git
  1092. git clone https://github.com/CCob/BOF.NET.git
  1093. git clone https://github.com/Flangvik/NetLoader.git
  1094. git clone https://github.com/outflanknl/FindObjects-BOF.git
  1095. git clone https://github.com/GetRektBoy724/SharpUnhooker.git
  1096. git clone https://github.com/bats3c/EvtMute.git
  1097. git clone https://github.com/xforcered/InlineExecute-Assembly.git
  1098. git clone https://github.com/hlldz/Phant0m.git
  1099. git clone https://github.com/CCob/SharpBlock.git
  1100. git clone https://github.com/Kharos102/NtdllUnpatcher.git
  1101. git clone https://github.com/bats3c/DarkLoadLibrary.git
  1102. git clone https://github.com/Soledge/BlockEtw.git
  1103. git clone https://github.com/mdsecactivebreach/firewalker.git
  1104. git clone https://github.com/Cerbersec/KillDefenderBOF.git
  1105. echo ""
  1106. echo "Cloning Web Resources"
  1107. echo ""
  1108. sleep 2
  1109. cd /opt/Web/
  1110. git clone https://github.com/rastating/wordpress-exploit-framework
  1111. apt-get install ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev -y
  1112. apt-get install build-essential patch -y
  1113. cd wordpress-exploit-framework/
  1114. ./rebuild_and_install_gem.sh
  1115. cd /opt/Web/
  1116. echo "Installing RED HAWK Framework"
  1117. echo ""
  1118. sleep 2
  1119. git clone https://github.com/Tuhinshubhra/RED_HAWK
  1120. cd RED_HAWK
  1121. php rhawk.php
  1122. echo "Cloning Social Engineering Resources"
  1123. echo ""
  1124. sleep 2
  1125. cd /opt/Social_Engineering
  1126. echo ""
  1127. echo "Installing Social Engineering Toolkit"
  1128. echo ""
  1129. sleep 2
  1130. git clone https://github.com/trustedsec/social-engineer-toolkit.git
  1131. cd social-engineering-toolkit/
  1132. python3 setup.py install
  1133. cd /opt/Social_Engineering/
  1134. echo ""
  1135. echo "Installing Social Engineering Payloads"
  1136. echo ""
  1137. sleep 2
  1138. git clone https://github.com/bhdresh/SocialEngineeringPayloads.git
  1139. echo ""
  1140. echo "Cloning Phishing Resources"
  1141. echo ""
  1142. sleep 2
  1143. cd /opt/Phishing/
  1144. echo ""
  1145. echo "Installing Phishery"
  1146. echo ""
  1147. sleep 2
  1148. mkdir phishery
  1149. cd phishery
  1150. wget https://github.com/ryhanson/phishery/releases/download/v1.0.2/phishery1.0.2linux-amd64.tar.gz
  1151. tar -xzvf phishery*.tar.gz
  1152. cp phishery /usr/local/bin
  1153. cd /opt/Phishing/
  1154. echo ""
  1155. echo "Installing EvilginX2"
  1156. echo ""
  1157. sleep 2
  1158. git clone https://github.com/kgretzky/evilginx2.git
  1159. cd evilginx2/
  1160. make
  1161. sudo make install
  1162. cd /opt/Phishing/
  1163. echo ""
  1164. echo "Installing PwnAuth"
  1165. echo ""
  1166. sleep 2
  1167. git clone https://github.com/fireeye/PwnAuth.git
  1168. cd PwnAuth/
  1169. bash setup.sh
  1170. cd /opt/Phishing/
  1171. echo ""
  1172. echo "Installig Modlishka"
  1173. echo ""
  1174. sleep 2
  1175. git clone https://github.com/drk1wi/Modlishka.git
  1176. cd Modlishka/
  1177. make
  1178. go build
  1179. cd /opt/Phishing/
  1180. echo ""
  1181. echo "Installing King-Phisher"
  1182. echo ""
  1183. sleep 2
  1184. git clone https://github.com/securestate/king-phisher.git
  1185. echo ""
  1186. echo "Installing FiercePhish"
  1187. echo ""
  1188. sleep 2
  1189. git clone https://github.com/Raikia/FiercePhish.git
  1190. cd FiercePhish/
  1191. bash install.sh
  1192. echo ""
  1193. echo "Installing ReelPhish"
  1194. echo ""
  1195. sleep 2
  1196. git clone https://github.com/fireeye/ReelPhish.git
  1197. cd ReelPhish/
  1198. pip3 install -r requirements.txt
  1199. cd /opt/Phishing/
  1200. echo ""
  1201. echo "Installing GoPhish"
  1202. echo ""
  1203. sleep 2
  1204. git clone https://github.com/gophish/gophish.git
  1205. cd gophish/
  1206. go build
  1207. echo ""
  1208. cd /opt/Phishing/
  1209. echo "Installing CredSniper"
  1210. echo ""
  1211. sleep 2
  1212. git clone https://github.com/ustayready/CredSniper.git
  1213. cd CredSniper/
  1214. read -p "Just Hit Enter Until All Dependencies Are Installed"
  1215. cd /opt/Phishing/
  1216. echo ""
  1217. echo "Cloning Phishing Pretexts"
  1218. echo ""
  1219. sleep 2
  1220. git clone https://github.com/L4bF0x/PhishingPretexts.git
  1221. echo ""
  1222. echo "Cloning Persistence Resources"
  1223. cd /opt/Windows_OS
  1224. mkdir Persistence
  1225. cd Persistence/
  1226. git clone https://github.com/0xthirteen/SharpStay.git
  1227. git clone https://github.com/fireeye/SharPersist.git
  1228. git clone https://github.com/outflanknl/SharpHide.git
  1229. git clone https://github.com/Ben0xA/DoUCMe.git
  1230. git clone https://github.com/nccgroup/ABPTTS.git
  1231. git clone https://github.com/blackarrowsec/pivotnacci.git
  1232. git clone https://github.com/sensepost/reGeorg.git
  1233. git clone https://github.com/HarmJ0y/DAMP.git
  1234. git clone https://github.com/0x09AL/IIS-Raid.git
  1235. git clone https://github.com/antonioCoco/SharPyShell.git
  1236. echo ""
  1237. echo "Cloning Lateral Movement Resources"
  1238. echo ""
  1239. echo ""
  1240. cd /opt/Lateral_Movement/
  1241. echo ""
  1242. echo "Installing Responder"
  1243. echo ""
  1244. sleep 2
  1245. git clone https://github.com/lgandx/Responder.git
  1246. echo ""
  1247. echo "Installing MITM6"
  1248. echo ""
  1249. sleep 2
  1250. git clone https://github.com/dirkjanm/mitm6.git
  1251. cd mitm6/
  1252. pip3 install -r requirements.txt
  1253. python3 setup.py install
  1254. cd /opt/Lateral_Movement/
  1255. echo ""
  1256. echo "Installing Impacket"
  1257. echo ""
  1258. sleep 2
  1259. git clone https://github.com/SecureAuthCorp/impacket.git
  1260. cd impacket/
  1261. python3 setup.py install
  1262. echo ""
  1263. sleep 2
  1264. cd /opt/Lateral_Movement/
  1265. echo "Cloning CrackMapExec"
  1266. git clone https://github.com/byt3bl33d3r/CrackMapExec.git
  1267. cd CrackMapExec/
  1268. echo "Cloning Windows Lateral Movement Resources"
  1269. echo ""
  1270. sleep 2
  1271. cd /opt/Windows_OS/
  1272. mkdir Lateral_Movement
  1273. cd Lateral_Movement/
  1274. git clone https://github.com/RiccardoAncarani/LiquidSnake.git
  1275. git clone https://github.com/NetSPI/PowerUpSQL.git
  1276. git clone https://github.com/0xthirteen/SharpRDP.git
  1277. git clone https://github.com/0xthirteen/MoveKit.git
  1278. git clone https://github.com/juliourena/SharpNoPSExec.git
  1279. git clone https://github.com/mdsecactivebreach/Farmer.git
  1280. git clone https://github.com/FortyNorthSecurity/CIMplant.git
  1281. git clone https://github.com/Mr-Un1k0d3r/PowerLessShell.git
  1282. git clone https://github.com/FSecureLABS/SharpGPOAbuse.git
  1283. git clone https://github.com/ropnop/kerbrute.git
  1284. git clone https://github.com/blackarrowsec/mssqlproxy.git
  1285. git clone https://github.com/Kevin-Robertson/Invoke-TheHash.git
  1286. git clone https://github.com/Kevin-Robertson/InveighZero.git
  1287. git clone https://github.com/jnqpblc/SharpSpray/git
  1288. git clone https://github.com/pkb1s/SharpAllowedToAct.git
  1289. git clone https://github.com/bohops/SharpRDPHijack.git
  1290. git clone https://github.com/klezVirus/CheeseTools.git
  1291. git clone https://github.com/PowerShellMafia/PowerSploit.git
  1292. git clone https://github.com/DanMcInerney/icebreaker.git
  1293. git clone https://github.com/JavelinNetworks/HoneypotBuster.git
  1294. echo ""
  1295. echo "Cloning Exfiltration Resources"
  1296. echo ""
  1297. sleep 2
  1298. cd /opt/Windows_OS/
  1299. mkdir Exfiltration
  1300. cd Exfiltration/
  1301. echo ""
  1302. sleep 2
  1303. git clone https://github.com/Flangvik/SharpExfiltrate.git
  1304. git clone https://github.com/Arno0x/DNSExfiltrator.git
  1305. git clone https://github.com/FortyNorthSecurity/Egress-Assess.git
  1306. echo ""
  1307. echo "Cloning Cloud Resources"
  1308. echo ""
  1309. sleep 2
  1310. cd /opt/Cloud
  1311. echo ""
  1312. mkdir AWS
  1313. cd AWS/
  1314. echo "Installing AWS Resources"
  1315. echo ""
  1316. sleep 2
  1317. echo ""
  1318. echo "Installing Pacu"
  1319. echo ""
  1320. sleep 2
  1321. git clone https://github.com/RhinoSecurityLabs/pacu.git
  1322. cd pacu/
  1323. bash install.sh
  1324. echo ""
  1325. cd /opt/Cloud/AWS/
  1326. echo "Installing CloudMapper"
  1327. echo ""
  1328. sleep 2
  1329. git clone https://github.com/duo-labs/cloudmapper.git
  1330. pip3 install -r requirements.txt
  1331. echo ""
  1332. echo "Installing Enumerate-IAM"
  1333. echo ""
  1334. sleep 2
  1335. cd /opt/Cloud/AWS/
  1336. git clone https://github.com/andresriancho/enumerate-iam.git
  1337. cd enumerate-iam/
  1338. pip3 install -r requirements.txt
  1339. echo ""
  1340. cd /opt/Cloud/AWS/
  1341. echo "Installing AWSBucketDump"
  1342. echo ""
  1343. sleep 2
  1344. git clone https://github.com/jordanpotti/AWSBucketDump.git
  1345. cd AWSBucketDump/
  1346. pip3 install -r requirements.txt
  1347. cd /opt/Cloud/
  1348. mkdir Azure
  1349. cd Azure
  1350. echo "Installing Azure Resources"
  1351. echo ""
  1352. echo "Installing ADConnectDump"
  1353. echo ""
  1354. sleep 2
  1355. git clone https://github.com/fox-it/adconnectdump.git
  1356. echo ""
  1357. cd /opt/Cloud/Azure/
  1358. echo ""
  1359. echo "Installing Stormspotter"
  1360. echo ""
  1361. sleep 2
  1362. git clone https://github.com/Azure/Stormspotter.git
  1363. cd /opt/Cloud/Azure/
  1364. echo ""
  1365. echo "Installing ROADtools"
  1366. echo ""
  1367. sleep 2
  1368. git clone https://github.com/dirkjanm/ROADtools.git
  1369. cd ROADtools/
  1370. pip install -e roadlib/
  1371. pip install -e roadrecon/
  1372. cd roadrecon/frontend/
  1373. npm install
  1374. npm audit fix
  1375. echo ""
  1376. echo "Installing MicroBurst"
  1377. echo ""
  1378. sleep 2
  1379. cd /opt/Cloud/Azure/
  1380. git clone https://github.com/NetSPI/MicroBurst.git
  1381. echo ""
  1382. echo "Installing AADInternals"
  1383. echo ""
  1384. sleep 2
  1385. cd /opt/Windows_OS/
  1386. mkdir Cloud
  1387. cd Cloud
  1388. mkdir Azure
  1389. cd Azure
  1390. git clone https://github.com/Gerenios/AADInternals.git
  1391. echo ""
  1392. echo "Cloning Hak5 Implant Resources"
  1393. echo ""
  1394. cd /opt/Hak5_Implants
  1395. echo ""
  1396. git clone https://github.com/hak5/omg-payloads.git
  1397. git clone https://github.com/hak5/bashbunny-payloads.git
  1398. git clone https://github.com/hak5/usbrubberducky-payloads.git
  1399. git clone https://github.com/hak5/pineapple-community-packages.git
  1400. git clone https://github.com/hak5/pineapple-modules.git
  1401. git clone https://github.com/hak5/mk7-docs.git
  1402. git clone https://github.com/hak5/keycroc-payloads.git
  1403. git clone https://github.com/hak5/sharkjack-payloads.git
  1404. git clone https://github.com/hak5/lanturtle-modules.git
  1405. git clone https://github.com/hak5/hak5-docs.git
  1406. git clone https://github.com/hak5/packetsquirrel-payloads.git
  1407. git clone https://github.com/hak5/nano-tetra-modules.git
  1408. git clone https://github.com/hak5/signalowl-payloads.git
  1409. git clone https://github.com/hak5/plunderbug-scripts.git
  1410. echo ""
  1411. echo "Cloning Wireless Resources"
  1412. echo ""
  1413. cd /opt/Wireless/
  1414. echo ""
  1415. echo "Installing BeRateAP"
  1416. echo ""
  1417. sleep 2
  1418. git clone https://github.com/sensepost/berate_ap
  1419. echo ""
  1420. cd /opt/Wireless/
  1421. echo "Installing EvilTwin Capitive Portal"
  1422. echo ""
  1423. sleep 2
  1424. git clone https://github.com/athanstan/EvilTwin_AP_CaptivePortal.git
  1425. echo ""
  1426. cd /opt/Wireless/
  1427. echo "Installing Fluxion"
  1428. echo ""
  1429. sleep 2
  1430. git clone https://www.github.com/FluxionNetwork/fluxion.git
  1431. echo ""
  1432. echo "Installing Bettercap"
  1433. echo ""
  1434. sleep 2
  1435. git clone https://github.com/bettercap/bettercap
  1436. cd bettercap/
  1437. bash build.sh
  1438. echo ""
  1439. echo "Installing Airgeddon"
  1440. echo ""
  1441. sleep 2
  1442. git clone https://github.com/v1s1t0r1sh3r3/airgeddon.git
  1443. echo ""
  1444. cd /opt/Wireless/
  1445. echo "Installing HCXTools"
  1446. echo ""
  1447. sleep 2
  1448. git clone https://github.com/ZerBea/hcxtools
  1449. cd hcxtools/
  1450. make && make install
  1451. echo "Installing HCX Dump Tool"
  1452. cd /opt/Wireless/
  1453. git clone https://github.com/ZerBea/hcxdumptool
  1454. cd hcxdumptool/
  1455. make && make install
  1456. cd /opt/Wireless/
  1457. echo "Installing Bully"
  1458. echo ""
  1459. sleep 2
  1460. git clone https://github.com/aanarchyy/bully
  1461. cd bully/src
  1462. make && make install
  1463. cd /opt/Wireless/
  1464. echo "Installing EapHammer"
  1465. echo ""
  1466. sleep 2
  1467. git clone https://github.com/s0lst1c3/eaphammer.git
  1468. cd eaphammer/
  1469. ./kali-setup
  1470. cd /opt/Wireless
  1471. mkdir Wireless_Drivers
  1472. cd Wireless_Drivers/
  1473. apt install dkms -y
  1474. git clone https://github.com/aircrack-ng/rtl8812au
  1475. cd rtl8812au/
  1476. make && make install
  1477. cd /opt/Virtual_Machines
  1478. echo "Installing VirtualBox"
  1479. echo ""
  1480. sleep 3
  1481. apt-get update -y && apt-get upgrade -y
  1482. apt --fix-broken install -y
  1483. wget https://download.virtualbox.org/virtualbox/6.1.34/virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb
  1484. dpkg --install virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb
  1485. echo""
  1486. echo "Downloading Kali VM"
  1487. echo ""
  1488. wget https://kali.download/virtual-images/kali-2022.1/kali-linux-2022.1-virtualbox-amd64.ova
  1489. echo ""
  1490. echo "Downloading Windows Ops Box"
  1491. echo ""
  1492. sleep 2
  1493. wget https://az792536.vo.msecnd.net/vms/VMBuild_20190311/VirtualBox/MSEdge/MSEdge.Win10.VirtualBox.zip
  1494. echo ""
  1495. sleep 2
  1496. echo ""
  1497. apt --fix-broken install -y
  1498. read -p "Press Enter To Reboot Your New C2 Box"
  1499. reboot now