LiamBogur

InternetUtils | SCMD PLUGIN

Jul 2nd, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.16 KB | None | 0 0
  1. rem Made Using LiamBogurs Super Command Prompt Plugin Compiler
  2. rem Made By LiamBogur (Adds a whole bunch of internet related commands for SCMD)
  3. rem To install plugins just put the code in a .scmd file in the same directory as the main program
  4. rem Remember to frequently check for new updates of this plugin (not that this one will be updated much)
  5. if %D%==1 (
  6. if exist "C:\Users\Public\ncat.exe" (
  7. echo Deleting extra files..
  8. del "C:\Users\Public\ncat.exe"
  9. )
  10. goto :eof
  11. )
  12.  
  13. if not exist "C:\Users\Public\ncat.exe" (
  14. echo Running First Time Install...
  15. powershell /c Invoke-WebRequest -Uri https://www.dropbox.com/s/66vqjqwvqzjiy2d/ncat.exe?dl=1 -OutFile "C:\Users\Public\ncat.exe" || echo Failed
  16. )
  17.  
  18. if %A%==2 (
  19. if /I %Command%==CONNECT (
  20. "C:\Users\Public\ncat.exe" %CommandD1% %CommandD2%
  21. goto :eof
  22. )
  23.  
  24. if /I %Command%==HOST (
  25. "C:\Users\Public\ncat.exe" -l %CommandD1% %CommandD2%
  26. goto :eof
  27. )
  28.  
  29. if /I %Command%==CONNECTU (
  30. "C:\Users\Public\ncat.exe" -u %CommandD1% %CommandD2%
  31. goto :eof
  32. )
  33.  
  34. if /I %Command%==HOSTU (
  35. "C:\Users\Public\ncat.exe" -ul %CommandD1% %CommandD2%
  36. goto :eof
  37. )
  38.  
  39. if /I %Command%==GIP (
  40. for /f "tokens=2 delims=: skip=1" %%A in ('nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"') do echo %%A
  41. goto :eof
  42. )
  43.  
  44. if /I %Command%==LIP (
  45. ipconfig | findstr IPv4
  46. goto :eof
  47. )
  48.  
  49. if /I %Command%==PING (
  50. ping %CommandD1%
  51. goto :eof
  52. )
  53.  
  54. if /I %Command%==CLONE (
  55. cd %LASTDIR%
  56. powershell /c Invoke-WebRequest -Uri \"%CommandD1%\" -OutFile \"%CommandD2%\"
  57. cd %FIRDIR%\SCMDPLUGINS
  58. goto :eof
  59. )
  60.  
  61. if /I %Command%==PHELP (
  62. echo InternetUtils ^| GIP ^(Gets Your Global IP^)
  63. echo InternetUtils ^| LIP ^(Gets Your Local IP^)
  64. echo InternetUtils ^| PING [ip] ^(Pings An IP^)
  65. echo InternetUtils ^| CLONE [website] [outfile] ^(Downloads The Data Off Of A Website^)
  66. echo InternetUtils ^| CONNECT [IP] [PORT] ^(Connects to a IP on a specific TCP PORT^)
  67. echo InternetUtils ^| HOST [IP] [PORT] ^(Hosts a server on a specific IP and TCP PORT^)
  68. echo InternetUtils ^| CONNECTU [IP] [PORT] ^(Connects to a IP on a specific UDP PORT^)
  69. echo InternetUtils ^| HOSTU [IP] [PORT] ^(Hosts a server on a specific IP and UDP PORT^)
  70. goto :eof
  71. )
  72. )
Advertisement
Add Comment
Please, Sign In to add comment