Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use use a proxy #3103

Closed
Unsworth94 opened this issue Aug 8, 2016 · 11 comments
Closed

Ability to use use a proxy #3103

Unsworth94 opened this issue Aug 8, 2016 · 11 comments

Comments

@Unsworth94
Copy link

Expected Behavior

I saw there was a commit for adding proxies to the bot but it got reverted :( could we get this added? Would be awesome!

Actual Behavior

Able to pass a proxy via command/config

Steps to Reproduce

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: (run 'python -V' and paste it here)

@Strange-Penguin
Copy link

Install proxychains.
Then just do proxychains ./pokecli
No need to inbuilt proxy

@firzzen
Copy link

firzzen commented Aug 8, 2016

@ddrght12345 i'm not very familiar with running proxies on a server for a python script. Do you have any suggestions to which one to use on an Ubuntu 15.04 alongside the bot?

@Unsworth94
Copy link
Author

@firzzen example: nohup proxychains python pokecli.py -a ptc -u "$1" -p "$2" -l "$3" After installing proxychains using apt-get install proxychains then add your proxies into the /etc/proxychains.conf file

@firzzen
Copy link

firzzen commented Aug 8, 2016

thanks @Unsworth94 , that helps a lot.

@firzzen
Copy link

firzzen commented Aug 8, 2016

@Unsworth94 i understand that proxychains offers dynamic or random proxy usage. But what if you're running five bots at the same time? Can you use different configs for proxychains for different bots?

One option would be to use proxychains random proxy so it cycles them each time but that would look bad if you login from different locations every day, or even worse when the bot crashes and you have to login again 5 minutes after initially starting it.

@Unsworth94
Copy link
Author

@firzzen yes, you pass -f /path/to/file/proxychains-xxxx.conf to the proxychains command.

Example: proxychains -f /path/to/file/proxychains-xxxx.conf python pokecli.py -a ptc -u "$1" -p "$2" -l "$3"

@firzzen
Copy link

firzzen commented Aug 9, 2016

@Unsworth94 Trying to run the script with proxychains -f /etc/proxychains.conf python pokecli.py -cf ./configs/config.json results in:

ProxyChains-3.1 (http://proxychains.sf.net)
/usr/bin/proxychains: 9: exec: -f: not found

And google isn't offering much help atm.

@Unsworth94
Copy link
Author

Check the documentation https://github.com/haad/proxychains

@firzzen
Copy link

firzzen commented Aug 9, 2016

Thanks @Unsworth94 . The suggestion might seem very straightforward and basic but now i actually focused into the instructions and realized that you copied commands for secondary config files, not the default one :).

@Unsworth94
Copy link
Author

Oh I thought that's what you was after! Sorry!

@maddo7
Copy link

maddo7 commented Aug 11, 2016

What's the solution for windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants