Author Topic: Triggering URL frequently with Tor.  (Read 685 times)

0 Members and 1 Guest are viewing this topic.

Offline aaanathan

  • /dev/null
  • *
  • Posts: 5
  • Cookies: -1
    • View Profile
Triggering URL frequently with Tor.
« on: October 10, 2015, 05:42:52 am »
Hi Guys,

I wrote the below code to trigger YouTube URL with diff IP every time to increase the view count.

But sometimes it's happening but most of the time not.

Am I wrong with this objective or with the code?

import os
Import requests

i=0

While i < 10:
    os.system('service tor restart')
    req = requests.get("youtube url")
    res = req.text
    i=i+1




Sent from my A0001 using Tapatalk


Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: Triggering URL frequently with Tor.
« Reply #1 on: October 10, 2015, 01:01:14 pm »
First, use the [ c o d e ] and [ / c o d e ] BBcode tags to make your code more readable.

Secondly, you didn't proxy the requests through tor. You just started the service, but didn't connect to it.
Also, don't use os.system if you don't have to. There are better ways to do this:

As you're already using python, I'd suggest the stem library (https://stem.torproject.org/)
It's a python controller library for tor, so it allows, for example, changing the identity. That way you don't have to restart the tor service everytime to get a new identity. Furthermore it makes your code more portable (should work on windows too).
FYI, the requests library doesn't support SOCKS proxies (wich tor is using), so you'll have to look for another http library that does support SOCKS proxies. httplib2 supports these kind of proxies if you have the pysocks/socksipy library installed (pysocks is the more recent fork, socksipy isn't actively developed anymore).

As for the code in general, using a for-loop would make it look cleaner (matter of taste). Assinging the content of the yourtube url to the variable "res" is unneccessary, as you do not use the variable later on.
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline aaanathan

  • /dev/null
  • *
  • Posts: 5
  • Cookies: -1
    • View Profile
Re: Triggering URL frequently with Tor.
« Reply #2 on: October 13, 2015, 04:09:50 pm »
Hi,

Thanks for your reply,

Got working with the below script.

https://github.com/ArockiaAntony/PythonSnippets/blob/master/youtube_traffic.py



Sent from my A0001 using Tapatalk
« Last Edit: October 13, 2015, 04:11:55 pm by aaanathan »

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Triggering URL frequently with Tor.
« Reply #3 on: October 13, 2015, 04:37:42 pm »
Hi,

Thanks for your reply,

Got working with the below script.

https://github.com/ArockiaAntony/PythonSnippets/blob/master/youtube_traffic.py



Sent from my A0001 using Tapatalk

Be aware that youtube (read google) is very much aware of dirty traffic , tor exit nodes being one of them.
You might increase the views but you will also wreck the video rating(or other flagging of sorts) that is not visible, it won't help for making the vid easier to find or anything.
You are about 5 years late.
« Last Edit: October 13, 2015, 04:39:42 pm by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Triggering URL frequently with Tor.
« Reply #4 on: October 13, 2015, 05:48:14 pm »
Be aware that youtube (read google) is very much aware of dirty traffic , tor exit nodes being one of them.
You might increase the views but you will also wreck the video rating(or other flagging of sorts) that is not visible, it won't help for making the vid easier to find or anything.
You are about 5 years late.


However if you're smart about it, you would use a botnet with legitimate home/business computers with random timing traffic to generate views, but hey where's the fun in that
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry