webdevRefinery Forum: Using a proxy list in Python - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 May 2011 - 11:54 AM (#1)

Using a proxy list in Python


^Title

I need to manipulate a voting by a few votes. Is there any way to use some sort of Proxy list and hit the URL through a different one each time?

I don't have the time and money to spin up EC2 instances. :P

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 02 May 2011 - 11:59 AM (#2)

lol @ the reason you need this ;-)

I did this once to attack a phishing scammer by getting a few thousand people to send in hundreds of fake names, passwords, E-mail addresses, etc. This is years old and hasn't been maintained even a little tiny bit since we succeeded in shutting the scammer down, but the app is still here: http://impsvillage.com/killscammer/

I threw that together in about an hour with PHP and cURL, as cURL has an option that allows you to specify an HTTP proxy to make its connection through. I just collected a list of free HTTP proxies, plugged them into a php array, and had it choose randomly which to use every time the page loaded.

There are cURL libraries for practically every language, so if you can find a good lib for Python, job done :) Otherwise, this was mad easy in PHP. Yell if you want the code and I'll dig it up.
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 May 2011 - 12:05 PM (#3)

View PostKyek, on 02 May 2011 - 11:59 AM, said:

lol @ the reason you need this ;-)

I did this once to attack a phishing scammer by getting a few thousand people to send in hundreds of fake names, passwords, E-mail addresses, etc. This is years old and hasn't been maintained even a little tiny bit since we succeeded in shutting the scammer down, but the app is still here (forgive the broken rounded corners): http://impsvillage.com/killscammer/

I threw that together in about an hour with PHP and cURL, as cURL has an option that allows you to specify an HTTP proxy to make its connection through. I just collected a list of free HTTP proxies, plugged them into a php array, and had it choose randomly which to use every time the page loaded.

There are cURL libraries for practically every language, so if you can find a good lib for Python, job done :) Otherwise, this was mad easy in PHP. Yell if you want the code and I'll dig it up.


Thanks for the reply and yes, I'm really evil. :(

I indeed found a cURL library for Python. It supports proxies. Thanks for the tip!

Where did you get your proxies from?

(Would be great to have a bot net by hand right now)

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 02 May 2011 - 12:14 PM (#4)

I think mine came from proxy.org, funnily enough.

And I can't blame you too much... once upon a time, my girlfriend (now wife) entered her (now our) dog into a local cutest-dog-ever competition and we made it down to the final round. The guy we were up against was OBVIOUSLY botting his votes . . . so I spun up 20 EC2 nodes and gave them all cron jobs to vote every five minutes. :D

Bastard still won :(
0


User is offline Smarag 

  • Group: Members
  • Posts: 584
  • Joined: 08-March 10
  • Expertise:HTML,CSS,PHP

Posted 02 May 2011 - 12:21 PM (#5)

View PostKyek, on 02 May 2011 - 12:14 PM, said:

I think mine came from proxy.org, funnily enough.

And I can't blame you too much... once upon a time, my girlfriend (now wife) entered her (now our) dog into a local cutest-dog-ever competition and we made it down to the final round. The guy we were up against was OBVIOUSLY botting his votes . . . so I spun up 20 EC2 nodes and gave them all cron jobs to vote every five minutes. :D

Bastard still won :(


You tell us that story everytime :3. It's still funny though xD
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 02 May 2011 - 12:31 PM (#6)

View PostSmarag, on 02 May 2011 - 12:21 PM, said:

You tell us that story everytime :3. It's still funny though xD

Oh god, I don't even remember telling that story here! I've become a crotchety old man D:
0


User is offline Koen 

  • Leroy Jenkins
  • Group: Members
  • Posts: 2503
  • Joined: 10-March 10
  • Locationthe Netherlands
  • Expertise:HTML,CSS,Javascript,Graphics

Posted 02 May 2011 - 12:46 PM (#7)

View PostKyek, on 02 May 2011 - 12:31 PM, said:

Oh god, I don't even remember telling that story here! I've become a crotchety old man D:

I hadn't heard it yet.
Please click the + if I helped you!
Twitter: @KoenKlaren

<callumacrae> YOU DID A ROMNEY
0


User is offline Smarag 

  • Group: Members
  • Posts: 584
  • Joined: 08-March 10
  • Expertise:HTML,CSS,PHP

Posted 02 May 2011 - 12:51 PM (#8)

View PostKyek, on 02 May 2011 - 12:31 PM, said:

Oh god, I don't even remember telling that story here! I've become a crotchety old man D:


You mentioned it aside of this thread at least 2-3 times, in node.js threads talking about the advantages of EC2 and in one thread where somebody wanted to fake votes as well ;D
0


User is offline Sync 

  • Group: Members
  • Posts: 336
  • Joined: 20-April 10
  • LocationLondon
  • Expertise:HTML,CSS,PHP

Posted 02 May 2011 - 12:56 PM (#9)

View PostKyek, on 02 May 2011 - 12:31 PM, said:

Oh god, I don't even remember telling that story here! I've become a crotchety old man D:

Lol it's true you've written it at least 3 times now XD
deviantART users, join the webdevRefinery group!

My personal blog and gallery, imvin.co.uk
watch me on deviantART
follow me on twitter
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 02 May 2011 - 01:07 PM (#10)

Son of a bitch. BRB, practicing saying "Get the hell off my lawn!" as fast as I can.
0


User is offline amrutraj 

  • Group: Members
  • Posts: 1
  • Joined: 13-August 11

Posted 13 August 2011 - 09:16 AM (#11)

Ha ha ha.
Hi all.
I have learned half a dozen languages in past year through quick and dirty programming, and have visited about 30K coding-related web pages in the process. I registered to only 2 communities and that too was because it was absolutely necessary, in the last, coding packed year. wdR is the first website, EVAR, that I have registered to, at the first visit. And the above post has a lot to do with it.

I love it that the founder's reply wasn't " Please do not use this forum for illegal purporr hurr durr ". Its always good to have admins we can relate to and admire.


View PostMo3, on 02 May 2011 - 11:54 AM, said:

^Title

I need to manipulate a voting by a few votes. Is there any way to use some sort of Proxy list and hit the URL through a different one each time?

I don't have the time and money to spin up EC2 instances. :P

I was looking for the same and found it here. Tested it, it works.
http://stackoverflow...tting-in-python
2


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 13 August 2011 - 09:44 AM (#12)

View Postamrutraj, on 13 August 2011 - 09:16 AM, said:

Ha ha ha.
Hi all.
I have learned half a dozen languages in past year through quick and dirty programming, and have visited about 30K coding-related web pages in the process. I registered to only 2 communities and that too was because it was absolutely necessary, in the last, coding packed year. wdR is the first website, EVAR, that I have registered to, at the first visit. And the above post has a lot to do with it.

I love it that the founder's reply wasn't " Please do not use this forum for illegal purporr hurr durr ". Its always good to have admins we can relate to and admire.



I was looking for the same and found it here. Tested it, it works.
http://stackoverflow...tting-in-python


Indeed, thats one of the main reasons I love wdR. Welcome! :)

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is online Cyril 

  • Group: Members
  • Posts: 2544
  • Joined: 03-August 10
  • Expertise:HTML,CSS,PHP,Javascript,Graphics

Posted 13 August 2011 - 09:47 AM (#13)

View PostMo3, on 13 August 2011 - 09:44 AM, said:

Indeed, thats one of the main reasons I love wdR. Welcome! :)


I just love wdR because of all the awesome members (with some exceptions) :D

website :: github :: twitter :: dribbble :: forrst
html, css, php, javascript, graphics
0


User is offline Fike 

  • Group: Members
  • Posts: 340
  • Joined: 26-October 10
  • LocationIreland
  • Expertise:PHP,Javascript,Python,SQL

Posted 14 August 2011 - 05:12 AM (#14)

There's a module my friend made for SOCKS5 proxies, don't know if he released it.

If it's what you're looking for, just say and I'll root it out :)
web developer :: HTML, CSS, JavaScript (node), Python, PHP, MySQL, Mongo.
server admin :: experience with debian (and debian based distros), Gentoo, FreeBSD, OpenBSD.
social :: @nixhead (Twitter), Fudge (IRC), Github (FionnK), Personal Blog.
0


User is offline callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 14 August 2011 - 05:17 AM (#15)

I suspect that the voting has ended by now :P
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is offline DarkCoder 

  • Group: Members
  • Posts: 1463
  • Joined: 08-March 10
  • LocationEngland, United Kingdom
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 16 August 2011 - 04:29 AM (#16)

Hire a botnet and make them hit the address :D (jk, i'm not recommending this).
0


User is offline Fike 

  • Group: Members
  • Posts: 340
  • Joined: 26-October 10
  • LocationIreland
  • Expertise:PHP,Javascript,Python,SQL

Posted 16 August 2011 - 03:48 PM (#17)

View PostDarkCoder, on 16 August 2011 - 04:29 AM, said:

Hire a botnet and make them hit the address :D (jk, i'm not recommending this).


/me tuts

:P
web developer :: HTML, CSS, JavaScript (node), Python, PHP, MySQL, Mongo.
server admin :: experience with debian (and debian based distros), Gentoo, FreeBSD, OpenBSD.
social :: @nixhead (Twitter), Fudge (IRC), Github (FionnK), Personal Blog.
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services