-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgamal-helper.sh
More file actions
126 lines (104 loc) · 5.22 KB
/
Copy pathgamal-helper.sh
File metadata and controls
126 lines (104 loc) · 5.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env bash
####################################################
echo "Run 'sudo apt install p7zip-full wget curl -y' first!"
echo "----------------------"
####################################################
cd f
mkdir --parents win linux mac web
####################################################
cd win
echo "Windows:"
echo "*- Mimikatz"
wget --quiet https://github.com/gentilkiwi/mimikatz/releases/latest/download/mimikatz_trunk.zip
7z x mimikatz_trunk.zip -o./mimikatznk &> /dev/null
mv mimikatznk/x64/ mimikatz64
rm -rf mimikatznk/ mimikatz_trunk.zip
echo "*- SharpCollection"
wget --quiet https://github.com/Flangvik/SharpCollection/archive/refs/heads/master.zip
7z x master.zip > /dev/null
mv SharpCollection-master/NetFramework_4.7_x64 sharpc64
rm -rf SharpCollection-master master.zip
echo "*- ligolo-ng"
curl -s https://api.github.com/repos/nicocha30/ligolo-ng/releases/latest | grep "browser_download_url.*windows_amd64*" | cut -d : -f 2,3 | tr -d \" | wget -qi -
find . -type f -name "*.zip" -exec 7z x {} -o* \; &> /dev/null
mkdir --parents ligolo
mv ligolo-ng_agent*/agent.exe ligolo/agent.exe
mv ligolo-ng_proxy*/proxy.exe ligolo/proxy.exe
rm -rf ligolo-ng_agent* ligolo-ng_proxy*
echo "*- PEASS-ng"
curl -s https://api.github.com/repos/peass-ng/PEASS-ng/releases/latest | grep "browser_download_url.*winPEAS*" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mkdir --parents peass
mv winPEAS* peass
echo "*- AzureHound"
curl -s https://api.github.com/repos/SpecterOps/AzureHound/releases/latest | grep "browser_download_url.*windows_amd64*" | cut -d : -f 2,3 | tr -d \" | head -n 1 | wget -qi -
7z x AzureHound*.zip &> /dev/null
rm -f AzureHound*.zip
echo "*- ncat"
wget --quiet https://nmap.org/dist/ncat-portable-5.59BETA1.zip
7z x ncat-portable-5.59BETA1.zip &> /dev/null
mv ncat-portable-5.59BETA1/ncat.exe .
rm -rf ncat-portable-5.59BETA1*
echo "----------------------"
cd ..
####################################################
cd linux
echo "Linux:"
echo "*- PEASS-ng"
curl -s https://api.github.com/repos/peass-ng/PEASS-ng/releases/latest | grep "browser_download_url.*linpeas_linux*" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mkdir --parents peass
mv linpeas* peass
curl -s https://api.github.com/repos/peass-ng/PEASS-ng/releases/latest | grep "browser_download_url.*linpeas*.sh" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mv linpeas* peass
echo "*- ligolo-ng"
curl -s https://api.github.com/repos/nicocha30/ligolo-ng/releases/latest | grep "browser_download_url.*linux_amd64*" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mkdir --parents ligolo
find . -type f -name "*.tar.gz" -exec tar -xvf {} -C ligolo \; &> /dev/null
rm -f ligolo/README.md ligolo/LICENSE
rm -f ligolo-ng*.tar.gz
echo "*- AzureHound"
curl -s https://api.github.com/repos/SpecterOps/AzureHound/releases/latest | grep "browser_download_url.*linux_amd64*" | cut -d : -f 2,3 | tr -d \" | head -n 1 | wget -qi -
7z x AzureHound*.zip &> /dev/null
rm -f AzureHound*.zip
echo "*- traitor"
curl -s https://api.github.com/repos/liamg/traitor/releases/latest | grep "browser_download_url.*amd64*" | cut -d : -f 2,3 | tr -d \" | wget -qi -
echo "----------------------"
cd ..
####################################################
cd mac
echo "macOS:"
echo "*- PEASS-ng"
curl -s https://api.github.com/repos/peass-ng/PEASS-ng/releases/latest | grep "browser_download_url.*darwin_amd64" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mkdir --parents peass
mv linpeas* peass
echo "*- ligolo-ng"
curl -s https://api.github.com/repos/nicocha30/ligolo-ng/releases/latest | grep "browser_download_url.*darwin_amd64.tar.gz" | cut -d : -f 2,3 | tr -d \" | wget -qi -
mkdir --parents ligolo
find . -type f -name "*.tar.gz" -exec tar -xvf {} -C ligolo \; &> /dev/null
rm -f ligolo/README.md ligolo/LICENSE ligolo-ng*.tar.gz
echo "*- AzureHound"
curl -s https://api.github.com/repos/SpecterOps/AzureHound/releases/latest | grep "browser_download_url.*darwin_amd64.zip" | grep -v sha256 | cut -d : -f 2,3 | tr -d \" | wget -qi -
7z x AzureHound*.zip &> /dev/null
rm -f AzureHound*.zip
echo "----------------------"
cd ..
####################################################
cd web
echo "Web-Shells"
curl -s https://raw.githubusercontent.com/BlackArch/webshells/refs/heads/master/asp/cmdasp.asp -o cmdasp.asp
curl -s https://raw.githubusercontent.com/BlackArch/webshells/refs/heads/master/aspx/cmdasp.aspx -o cmdasp.aspx
curl -s https://raw.githubusercontent.com/BlackArch/webshells/refs/heads/master/jsp/cmdjsp.jsp -o cmdjsp.jsp
curl -s https://raw.githubusercontent.com/BlackArch/webshells/refs/heads/master/php/pws.php -o cmdphp.php
echo "----------------------"
cd ..
####################################################
echo "DNS Tunnel Tools:"
wget -q https://github.com/jinfeiyang/dns2tcp/releases/download/v0.4/dns2cp-linux-x64.tar.gz 2>/dev/null || true
echo "ICMP Tunnel Tools:"
wget -q https://raw.githubusercontent.com/BadCarp/icmp-sh/main/icmpsh.py 2>/dev/null || true
echo "Cloud Storage Tools:"
wget -q https://dl.google.com/dl/cloudsdk/channels/rapid/install_google_cloud_sdk.sh -O /tmp/gcloud_install.sh 2>/dev/null || true
curl -L https://rclone.org/install.sh | bash 2>/dev/null || true
echo "SMB Tools:"
pip3 install impacket 2>/dev/null || apt-get install -y impacket-scripts 2>/dev/null || true
echo ""
echo "----------------------"