Advertisement
Guest User

LeftyWrekt

a guest
Jul 21st, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. =======USING THIS SCRIPT==========
  2. 1) Open Notepad or Powershell ISE
  3. 2) Copy script below into the editor Powershell ISE skip to step 5
  4. 3) For Notepad "Save as" (whatever).ps1
  5. 4) Run the script from where ever you saved it.
  6. 5) For Powershell ISE you can press F9 to run the script
  7.  
  8. ==COPY EVERYTHING BELOW THIS LINE==
  9.  
  10. #Get Thread url from user
  11. $Thread = Read-Host -Prompt "Enter thread url from 8chan"
  12. #Get Post name from user
  13. $Name = Read-Host -Prompt "Enter your desired post name (Can be blank)"
  14. #Get Post Message from user
  15. $Message = Read-Host -Prompt "Enter Your desired message (Can be blank for random message)"
  16.  
  17.  
  18. $RMessFlag = $False;
  19. $xe = New-Object -com "InternetExplorer.Application";
  20. $xe.visible = $true;
  21. $xe.silent = $true;
  22. #Navigate to thread.
  23. $xe.Navigate($Thread)
  24. while ($xe.Busy) {
  25.     [System.Threading.Thread]::Sleep(100)
  26. }
  27. #Build Posting JS Script
  28. if(!$Message)
  29. {
  30.     $Message = (65..90) + (97..122) | Get-Random -Count 10 | % {[char]$_}
  31.     $RMessFlag = true
  32. }
  33. $NameScript = "document.querySelector('input[name=""name""]').value = """ + $Name + """;";
  34. $MessageScript = "document.querySelector('textarea[name=""body""]').value = """ + $Message + """;";
  35. $PostScript = "document.querySelector('input[name=""post""]').click();";
  36. while($true){
  37.     if($RMessFlag){
  38.         $Message = (65..90) + (97..122) | Get-Random -Count 10 | % {[char]$_}
  39.         $MessageScript = "document.querySelector('textarea[name=""body""]').value = """ + $Message + """;";
  40.     }
  41.     $xe.Document.Script.execScript($NameScript, "JavaScript");
  42.     $xe.Document.Script.execScript($MessageScript, "JavaScript");
  43.     $xe.Document.Script.execScript($PostScript, "JavaScript");
  44.     [System.Threading.Thread]::Sleep(10000)
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement