GithubHelp home page GithubHelp logo

lucasveneno / trafficbot Goto Github PK

View Code? Open in Web Editor NEW
217.0 12.0 81.0 108.72 MB

This script generates traffic for websites using a Tor Proxy Pool or any proxy server for which you desire

Home Page: https://lucasveneno.github.com/trafficbot

License: MIT License

JavaScript 100.00%
traffic-generator traffic-generation bot nodejs nightmarejs traffic-bot privacy proxy proxy-server http

trafficbot's Introduction

VENENO TRAFFIC BOT (With a simple rotating Tor Proxy Server)

This script generates traffic for websites using a Tor Proxy Pool or any proxy server for which you desire

Prerequisites

  • Ubuntu 18.04+ 64-bit operating system
  • A user account with sudo privileges
  • Command line / terminal (CTRL-ALT-T or Applications menu > Accessories > Terminal)
  • Xvfb
  • NodeJS
  • unzip
  • libxi6
  • libgtk-3-0
  • libxss1
  • libgconf-2-4
  • libasound2
  • libxtst6
  • libnss3
  • libcanberra-gtk-module
  • libcanberra-gtk3-module
  • Docker software repositories (optional)

Step 1: Update software repositories

As usual, it’s a good idea to update the local database of software to make sure you’ve got access to the latest revisions.

Therefore, open a terminal window and type:

sudo apt-get update

Allow the operation to complete.

Step 2: Install requirements for Electron and Xvfb

sudo apt install -y unzip libxi6 libgtk-3-0 libxss1 libgconf-2-4 libasound2 libxtst6 libnss3 libcanberra-gtk-module libcanberra-gtk3-module

Step 3: Install Xvfb

Here Xvfb (X virtual framebuffer) is an in-memory display server for a UNIX-like operating system (e.g., Linux). It implements the X11 display server protocol without any display. This is helpful for CLI applications like CI service.

sudo apt-get install -y xvfb

Step 4: Install NodeJS or NPM

sudo apt-get install nodejs
sudo apt-get install npm

Step 5: Install Docker

To install Docker on Ubuntu, in the terminal window enter the command:

snap docker install

or

apt install docker.io

Step 6: Run the Proxy Server

So now we gonna create a proxy server

# build docker container
docker build -t zeta0/alpine-tor:latest .

# ... or pull docker container
docker pull zeta0/alpine-tor:latest

# start docker container
docker run -d -p 5566:5566 -p 2090:2090 -e tors=25 zeta0/alpine-tor

# start docker with privoxy enabled and exposed
docker run -d -p 8118:8118 -p 2090:2090 -e tors=25 -e privoxy=1 zeta0/alpine-tor

# test with ...
curl --socks5 localhost:5566 http://httpbin.org/ip

# or if privoxy enabled ...
curl --proxy localhost:8118 http://httpbin.org/ip

# or to run chromium with your new found proxy
chromium --proxy-server="http://localhost:8118" \
    --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"

# monitor
# auth login:admin
# auth pass:admin
http://localhost:2090 or http://admin:admin@localhost:2090

# start docket container with new auth
docker run -d -p 5566:5566 -p 2090:2090 -e haproxy_login=MySecureLogin \
    -e haproxy_pass=MySecurePassword zeta0/alpine-tor

Step 7: Usage Of Veneno Traffic Bot

Environment variables

  • url - URL for navigation. (Default: https://ppplayer.com/)
  • referrals - The referrals params thus sending traffic to you (Default: no).
  • proxy - The proxy server IP or address that acts as an intermediary for requests. (Example: 127.0.0.1 - Default: '')
  • port - Integer, port for proxy. (Example: 8080)
  • user and pass - Basic auth config for the proxy server. (Default: `` in both variables)
  • windows - Integer, number of bot instances to run. (Default: 1)
  • time - Integer or string (--time random), max session time parameter value in seconds. (Default: 3 seconds per page and 5 Pages to run through, the random mode value in seconds is betwen 60 and 300 secs)

Basic usage with Xvfb enabled and proxy disabled (IP of the server)

# Run the traffic bot
xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1024x768x24" node --harmony index.js --url https://ppplayer.com/ --windows 1 --time 2

Normal usage with environment variables and Xvfb enabled

# Run the traffic bot
xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1024x768x24" node --harmony index.js --url https://ppplayer.com/ --proxy 127.0.0.1 --port 8080 --user lucas --pass veneno --windows 1 --time 2

Normal usage with environment variables and without Xvfb (Graphic Card Needed)

# Run the traffic bot
node index.js --url https://ppplayer.com --proxy 127.0.0.1 --port 8080 --user lucas --pass veneno --windows 1 --time 2

Normal usage (Random time mode and referrals to url enable) with environment variables and without Xvfb (Graphic Card Needed)

# Run the traffic bot
node index.js --url https://ppplayer.com --proxy 127.0.0.1 --port 8080 --user lucas --pass veneno --windows 1 --time random --referrals yes

Normal usage without Xvfb (Graphic Card Needed) and proxy option with 3 minute session and only one window

# Run the traffic bot
node index.js --url https://ppplayer.com/ --windows 1 --time 3 

Debug usage Without Xvfb (Graphic Card Needed)

#  Run the traffic bot with Debug enabled
DEBUG=nightmare*,electron* node index.js --url https://ppplayer.com --windows 1 --time 4 3>log.txt
#  Run the traffic bot with Proxy and Debug enabled
DEBUG=nightmare*,electron* node index.js --url https://ppplayer.com --proxy 127.0.0.1 --port 19011 --user lucas --pass veneno --windows 1 --time 4 3>log.txt

Crontab at every minute

* * * * * xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1024x768x24" node --harmony /var/www/trafficbot/index.js --url https://ppplayer.com --windows 1 --time 3 

Further readings

License

Veneno Traffic Bot is an open source project released under the permissive MIT license.

Veneno Traffic Bot is standing on the shoulders of giants. Building something like Veneno Traffic Bot probably wouldn't be possible if not for the excellent open source projects that it builds on top of. In particular, it uses Nightmare for its fast architecture.

trafficbot's People

Contributors

lucasveneno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trafficbot's Issues

How do I know Proxy is working?

Hi, I checked google analytic, but the IP keep showing my IP location, it seems the proxy IP is not working? how to check whether it's working or not? I tried to return the IP address but it's undefined

.end()
.then((ip) => {
	console.log('IP: ', ip);
	console.log('Done');
})
.catch(function (error) {
	console.error('Error:', error);
});

Thanks

module.js:549 throw err;

module.js:549
throw err;
^

Error: Cannot find module '/home/siluo/index.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

Cannot find module './node_modules/platform'

Hi
How can I resolve this error. Thx

Error: Cannot find module './node_modules/platform'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/root/trafficbot/index.js:12:18)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Traffic IP related queries

I wanted to say hello and I hope everything is going well for you.
I have a couple of inquiries.
Is a new IP generated each time the tool run to drive traffic?

And will Google AdSense still work with it?

Looking for your kind response.

run error

Now checking 0
OS: Windows Server 2008 R2 / 7
Proxy: 127.0.0.1:5566
Browser: opera
Url: https://iphub.info/
Width: 640
Height: 480
Miliseconds per page: 20000
Layout: Blink
#0
Error: { Error: navigation error
at unserializeError (/root/trafficbot/node_modules/nightmare/lib/ipc.js:162:13)
at EventEmitter. (/root/trafficbot/node_modules/nightmare/lib/ipc.js:89:13)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at EventEmitter.emit (events.js:214:7)
at ChildProcess. (/root/trafficbot/node_modules/nightmare/lib/ipc.js:49:10)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
code: -130,
details: 'ERR_PROXY_CONNECTION_FAILED',
url: 'https://iphub.info/' }
undefined

I can not run the bot on Ubuntu 20.04

Hi, thanks for your work. I'm trying to use a bot on Ubuntu 20.04. I run a script without a proxy and get the result result: undefined. Would you tell me what I do wrong?

Greatings Sir, thank you so much for this project.

Please anytime I want to build the docker container this is what I see.

docker build -t zeta0/alpine-tor:latest 1 ⨯
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage: docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile

Please help me on that and how to use deploy the project. Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.