Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem Made Using LiamBogurs Super Command Prompt Plugin Compiler
- rem Made By LiamBogur (Adds a whole bunch of internet related commands for SCMD)
- rem To install plugins just put the code in a .scmd file in the same directory as the main program
- rem Remember to frequently check for new updates of this plugin (not that this one will be updated much)
- if %D%==1 (
- if exist "C:\Users\Public\ncat.exe" (
- echo Deleting extra files..
- del "C:\Users\Public\ncat.exe"
- )
- goto :eof
- )
- if not exist "C:\Users\Public\ncat.exe" (
- echo Running First Time Install...
- powershell /c Invoke-WebRequest -Uri https://www.dropbox.com/s/66vqjqwvqzjiy2d/ncat.exe?dl=1 -OutFile "C:\Users\Public\ncat.exe" || echo Failed
- )
- if %A%==2 (
- if /I %Command%==CONNECT (
- "C:\Users\Public\ncat.exe" %CommandD1% %CommandD2%
- goto :eof
- )
- if /I %Command%==HOST (
- "C:\Users\Public\ncat.exe" -l %CommandD1% %CommandD2%
- goto :eof
- )
- if /I %Command%==CONNECTU (
- "C:\Users\Public\ncat.exe" -u %CommandD1% %CommandD2%
- goto :eof
- )
- if /I %Command%==HOSTU (
- "C:\Users\Public\ncat.exe" -ul %CommandD1% %CommandD2%
- goto :eof
- )
- if /I %Command%==GIP (
- for /f "tokens=2 delims=: skip=1" %%A in ('nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"') do echo %%A
- goto :eof
- )
- if /I %Command%==LIP (
- ipconfig | findstr IPv4
- goto :eof
- )
- if /I %Command%==PING (
- ping %CommandD1%
- goto :eof
- )
- if /I %Command%==CLONE (
- cd %LASTDIR%
- powershell /c Invoke-WebRequest -Uri \"%CommandD1%\" -OutFile \"%CommandD2%\"
- cd %FIRDIR%\SCMDPLUGINS
- goto :eof
- )
- if /I %Command%==PHELP (
- echo InternetUtils ^| GIP ^(Gets Your Global IP^)
- echo InternetUtils ^| LIP ^(Gets Your Local IP^)
- echo InternetUtils ^| PING [ip] ^(Pings An IP^)
- echo InternetUtils ^| CLONE [website] [outfile] ^(Downloads The Data Off Of A Website^)
- echo InternetUtils ^| CONNECT [IP] [PORT] ^(Connects to a IP on a specific TCP PORT^)
- echo InternetUtils ^| HOST [IP] [PORT] ^(Hosts a server on a specific IP and TCP PORT^)
- echo InternetUtils ^| CONNECTU [IP] [PORT] ^(Connects to a IP on a specific UDP PORT^)
- echo InternetUtils ^| HOSTU [IP] [PORT] ^(Hosts a server on a specific IP and UDP PORT^)
- goto :eof
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment