ahaggard2013 / Reddit-Account-Generator-and-Mass-Upvoter

Automatically generate reddit accounts and use them for vote manipulation
67 stars 17 forks source link

The proxy server is refusing connections #7

Open lafftar opened 6 years ago

lafftar commented 6 years ago

Just trying to run this program out the box and i'm getting that error. My selenium version is 3.9.0, my geckodriver version is the latest and so is my firefox and Tor.

This is the error message I receive:

`C:\Users\Administrator.DELL-26\AppData\Local\Programs\Python\Python36-32\python.exe C:/Users/Administrator.DELL-26/PycharmProjects/untitled3/ghh/creator.py [+] creating account for L7QQ64GZG7ESUFD with password CJA6P5381020LMI

'clear' is not recognized as an internal or external command, operable program or batch file.

Traceback (most recent call last): File "C:/Users/Administrator.DELL-26/PycharmProjects/untitled3/ghh/creator.py", line 74, in main()

File "C:/Users/Administrator.DELL-26/PycharmProjects/untitled3/ghh/creator.py", line 54, in main account_created = create_account(username, password)

File "C:/Users/Administrator.DELL-26/PycharmProjects/untitled3/ghh/creator.py", line 22, in create_account browser.get('http://reddit.com/login')

File "C:\Users\Administrator.DELL-26\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 324, in get self.execute(Command.GET, {'url': url})

File "C:\Users\Administrator.DELL-26\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute self.error_handler.check_response(response)

File "C:\Users\Administrator.DELL-26\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=proxyConnectFailure&u=http%3A//reddit.com/login&c=UTF-8&f=regular&d=Firefox%20is%20configured%20to%20use%20a%20proxy%20server%20that%20is%20refusing%20connections. `

lafftar commented 6 years ago

Alright, fixed the connection problem, no idea how tbh. Now I get this: https://i.gyazo.com/bbab4bf50cd3e412a61aeed1af8b2178.png I figured it's not because of the Tor proxy, because I can receive captcha in the regular tor browser. I think it's because we're running through selenium so it recognizes it as an automated request. I figure we can try to combat this by hiding that it's automated, i'm very new to all this so i'm unsure tbh.

condomfighters commented 6 years ago

how did you fix the refusing proxy error? You must have tried something or did it got fixed by itself?

lafftar commented 6 years ago

@condomfighters I made sure everything was updated, and make sure Tor is running. Also, check to see which port your Tor browser is running on. Honestly man, I have no clue what i'm doing. Shit is just working but I don't know how it works :o

condomfighters commented 6 years ago

here is what I found. I went to firefox options > network proxy settings > auto-detect proxy settings for this network after refreshing the page it worked fine. but when I run the bot the proxy settings change back to the way they were. it's making me nuts. i'll try with tor

EDIT: fixed it, open creator.py go to line 16 and change

profile.set_preference("network.proxy.type", 1)

to

profile.set_preference("network.proxy.type", 2)

I get a new error tho. if anyone knows how to solve this error please share Error:

input = raw_input("[*] Solve captcha, create account, then press enter... enter 'r' as input if captcha doesn't appear to skip username" + '\n')

NameError: name 'raw_input' is not defined

thanks

lafftar commented 6 years ago

Don't auto detect the proxies, the bot is supposed to tunnel your instance of Firefox through the Tor protocol, can you post a screen of the error you're seeing? Both in the browser and in the console?

On Feb 27, 2018 9:48 PM, "condomfighters" notifications@github.com wrote:

here is what I found. I went to firefox options > network proxy settings > auto-detect proxy settings for this network after refreshing the page it worked fine. but when I run the bot the proxy settings change back to the way they were. it's making me nuts. i'll try with tor

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account-Generator-and-Mass-Upvoter/issues/7#issuecomment-369103225, or mute the thread https://github.com/notifications/unsubscribe-auth/AdTwpi87DLcM5Qgo4DhFS_cUbzc2O0Z7ks5tZL59gaJpZM4SUJC0 .

condomfighters commented 6 years ago

capture i fixed the browser error by changing

profile.set_preference("network.proxy.type", 1)

to

profile.set_preference("network.proxy.type", 2)

should i change it back?

lafftar commented 6 years ago

2 in network.proxy.type is autoconfig by url, while 1 ensures that you're connecting with manual proxy settings. Check the ip of the browser to make sure it's a Tor ip, if it is then you're fine. Would you like to work more on this over Skype or discord? I think @ahaggard2013 wrote this product for a different os, so some commands won't work for windows box, like raw_input and os.clear.

ahaggard2013 commented 6 years ago

Sorry I havn't had much time to help troubleshoot, but yes this was written on Ubuntu, so some changes would have to be made to be compatible with windows, you would need a different method to run ubuntu specific python calls and also there's a few terminal commands such as "service restart tor" that will not run on windows. If you make changes that make's this windows compatible I'd be happy to include your changes in the repository to allow duel OS support. If your git savvy you can fork my code and make additional changes, or if you link the changed files here I can add them myself

On Wed, Feb 28, 2018 at 8:59 AM, lafftar notifications@github.com wrote:

2 in network.proxy.type is autoconfig by url, while 1 ensures that you're connecting with manual proxy settings. Check the ip of the browser to make sure it's a Tor ip, if it is then you're fine. Would you like to work more on this over Skype or discord? I think @ahaggard2013 wrote this product for a different os, so some commands won't work for windows box, like raw_input and os.clear.

On Feb 28, 2018 2:52 AM, "condomfighters" notifications@github.com wrote:

[image: capture] https://user-images.githubusercontent.com/36646886/36775991-e12f3af8- 1c29-11e8-8922-9a7444c72347.JPG i fixed the browser error by changing

profile.set_preference("network.proxy.type", 1)

to

profile.set_preference("network.proxy.type", 2)

should i change it back?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account- Generator-and-Mass-Upvoter/issues/7#issuecomment-369150983, or mute the thread https://github.com/notifications/unsubscribe-auth/ AdTwppB2OMo8eORdMmGuVo1MAoGcQ2j-ks5tZQXXgaJpZM4SUJC0 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account-Generator-and-Mass-Upvoter/issues/7#issuecomment-369247113, or mute the thread https://github.com/notifications/unsubscribe-auth/AKHSkbIz1kfSjrK689AlgtfVhp2BsFAtks5tZVuwgaJpZM4SUJC0 .

-- V/R

2LT A. Haggard Florida Tech Army ROTC Software Engineering 150 W University Blvd, Box # 5646 Melbourne, FL. 32901 Cell: (321) 536-3026

lafftar commented 6 years ago

Sounds good! Do you think we can make a discord to develop this? It could be profitable for all of us :)

On Feb 28, 2018 10:15 AM, "AJ Haggard" notifications@github.com wrote:

Sorry I havn't had much time to help troubleshoot, but yes this was written on Ubuntu, so some changes would have to be made to be compatible with windows, you would need a different method to run ubuntu specific python calls and also there's a few terminal commands such as "service restart tor" that will not run on windows. If you make changes that make's this windows compatible I'd be happy to include your changes in the repository to allow duel OS support. If your git savvy you can fork my code and make additional changes, or if you link the changed files here I can add them myself

On Wed, Feb 28, 2018 at 8:59 AM, lafftar notifications@github.com wrote:

2 in network.proxy.type is autoconfig by url, while 1 ensures that you're connecting with manual proxy settings. Check the ip of the browser to make sure it's a Tor ip, if it is then you're fine. Would you like to work more on this over Skype or discord? I think @ahaggard2013 wrote this product for a different os, so some commands won't work for windows box, like raw_input and os.clear.

On Feb 28, 2018 2:52 AM, "condomfighters" notifications@github.com wrote:

[image: capture] https://user-images.githubusercontent.com/36646886/36775991-e12f3af8- 1c29-11e8-8922-9a7444c72347.JPG i fixed the browser error by changing

profile.set_preference("network.proxy.type", 1)

to

profile.set_preference("network.proxy.type", 2)

should i change it back?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account- Generator-and-Mass-Upvoter/issues/7#issuecomment-369150983, or mute the thread https://github.com/notifications/unsubscribe-auth/ AdTwppB2OMo8eORdMmGuVo1MAoGcQ2j-ks5tZQXXgaJpZM4SUJC0 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account- Generator-and-Mass-Upvoter/issues/7#issuecomment-369247113, or mute the thread https://github.com/notifications/unsubscribe-auth/ AKHSkbIz1kfSjrK689AlgtfVhp2BsFAtks5tZVuwgaJpZM4SUJC0 .

-- V/R

2LT A. Haggard Florida Tech Army ROTC Software Engineering 150 W University Blvd https://maps.google.com/?q=150+W+University+Blvd&entry=gmail&source=g, Box # 5646 Melbourne, FL. 32901 Cell: (321) 536-3026

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ahaggard2013/Reddit-Account-Generator-and-Mass-Upvoter/issues/7#issuecomment-369270846, or mute the thread https://github.com/notifications/unsubscribe-auth/AdTwpsmK4g1-0BcaRgEfK73DtPEf9waOks5tZW17gaJpZM4SUJC0 .

condomfighters commented 6 years ago

https://discord.gg/9AcC38a join here

lafftar commented 6 years ago

@ahaggard2013 Hey AJ, we're having a lot of fun with your code, thank you for sharing :) Can I ask where you learned python? I would like to make a similar bot from the ground up myself, did you go through the code academy python course?