AutoC2.sh 40 KB

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