forked from nettitude/PoshC2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL_Socks.txt
More file actions
39 lines (34 loc) · 2.19 KB
/
INSTALL_Socks.txt
File metadata and controls
39 lines (34 loc) · 2.19 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
# INSTALL SharpSocks under Wine
ssh -X <IPADDRESS> # allow x forwarding for wine install
mkdir ~/SharpSocks
cd ~/SharpSocks
sudo dpkg --add-architecture i386
sudo apt-get update
apt-get install wget software-properties-common python-software-properties cabextract -yy
wget -nc https://repos.wine-staging.com/wine/Release.key
sudo apt-key add Release.key
rm Release.key
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable -yy
sudo apt-get install mono-complete mono-reference-assemblies-2.0 mono-reference-assemblies-3.5 mono-reference-assemblies-4.0 proxychains -yy
export WINEDEBUG=-all
winecfg
# Wine will ask you to install a Wine Mono package
# Wine will ask you to install a Gecko package
# Wine will open config editor, click ok
wget -O NDesk.Options.dll "https://github.com/nettitude/SharpSocks/blob/master/Binaries/SharpSocksServerTestApp/NDesk.Options.dll?raw=true"
wget -O SharpSocksServer.dll "https://github.com/nettitude/SharpSocks/blob/master/Binaries/SharpSocksServerTestApp/SharpSocksServer.dll?raw=true"
wget -O SharpSocksServerTestApp.exe "https://github.com/nettitude/SharpSocks/blob/master/Binaries/SharpSocksServerTestApp/SharpSocksServerTestApp.exe?raw=true"
wget -O SharpSocksServerTestApp.exe.config "https://github.com/nettitude/SharpSocks/blob/master/Binaries/SharpSocksServerTestApp/SharpSocksServerTestApp.exe.config?raw=true"
wget -O TunnelingSocksServer.dll "https://github.com/nettitude/SharpSocks/blob/master/Binaries/SharpSocksServerTestApp/TunnelingSocksServer.dll?raw=true"
If there is no folder here: /root/.wine/drive_c/windows/Microsoft.NET/
Try this
wget http://dl.winehq.org/wine/wine-mono/4.7.1/wine-mono-4.7.1.msi
wine uninstaller
# then point to the msi file and see if the folder is installed.
# RUNNING SharpSocks under Wine
cd ~/SharpSocks
WINEDEBUG=-all wine SharpSocksServerTestApp.exe -c TUgugRaZZxvbeSrgCyTEzQvlV -k Gnx4iyV9bVPIO9ugLfZExlAJyG07Gmmu1PcmiFKEzpk= -l http://`hostname -I`
# IMPLANT SIDE
Sharpsocks -Client -Uri http://<IPADDRESS>/ -Channel TUgugRaZZxvbeSrgCyTEzQvlV -Key Gnx4iyV9bVPIO9ugLfZExlAJyG07Gmmu1PcmiFKEzpk= -URLs "GoPro5/black/2018/","Philips/v902/" -Insecure -Beacon 2000