Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NOTE: THIS IS A POWERSHELL SCRIPT, AND AS SUCH, WILL ONLY WORK IN THE MICROSOFT WINDOWS OPERATING SYSTEM. I've never used Python before, but I'll try to learn it to publish an OS independent workaround if the issue isn't fixed soon.
- 1. Open your Start menu, type in "PowerShell ISE" and open the program it brings up.
- 2. Click on "View" at the top of the window. Make sure "Show Script Pane" is checked.
- 3. Copy/paste this into the white part:
- While ($True) {
- $Job = Start-Job -Name "Workaround" -ScriptBlock {
- CD C:\Users\YourProfile\PathToScannerFolder
- Python example.py -u USERNAME -p PASSWORD -l "38.897781, -77.036541" -st 5}
- Start-Sleep -s 300
- Stop-Job $Job
- }
- 4. Replace the path in the line beginning with CD C:\ with the actual path to the folder you have the scanner in.
- 5. Replace the words USERNAME and PASSWORD with the credentials for your dummy account.
- 6. Replace the coordinates with the location you want to scan.
- 7. Replace the number 5 (a modifier for how far the scanner scans) with a different number, if desired.
- 8. Replace 300 with the number of seconds you want the scanner to scan for before starting over.
- 9. Click the green, triangular play button at the top of the screen to start the program running. It will run indefinitely until you stop it.
- 10. You can now open the browser of your choice and go to localhost:5000, as usual. You can also start running ngrok at this point.
- 11. To stop it, click the red, square stop button.
- 12. After you stop it, make sure the jobs actually close by typing in "Stop-Job Workaround" in the dark blue section, then pressing Enter.
Advertisement
Add Comment
Please, Sign In to add comment