-
Notifications
You must be signed in to change notification settings - Fork 0
/
fakeTraficMaker.py
89 lines (62 loc) · 2.45 KB
/
fakeTraficMaker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import pyautogui as pyg
import time
import random
import time
from datetime import datetime
clicked = 0
currentTime = str(datetime.now())
timeIntervals = [240,360,120,60,50,30,10]
timeIntervals =[5,6,7]
def actHuman(x):
selectedTime = random.choice(timeIntervals)
strSelectedTime = str(selectedTime)
pyg.scroll(x)
time.sleep(selectedTime)
print('Times and the time interval was ',end='')
print(strSelectedTime)
# change url here
url = "https://homeage17.blogspot.com/2020/06/blog-post.html"
logFile = "log.txt" #log file name
f = open(logFile, "a")
f.write('\n----------------------------')
f.write(currentTime)
f.write('----------------------------\n')
f.close()
#opening browser
pyg.hotkey('ctrl','shift','t')
time.sleep(15)
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#-------------------------------------Capnin----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
while 1:
# veriable
time.sleep(2)
clicked +=1
strClicked = str(clicked)
#tying search
pyg.press('f6')
pyg.write(url)
time.sleep(0.5)
pyg.press('enter')
#scrolling page
pyg.moveTo(373,683)
time.sleep(10)
actHuman(-10000)
actHuman(-10000)
actHuman(-10000)
pyg.scroll(-10000)
time.sleep(3)
pyg.scroll(10000)
#changing ip address
pyg.hotkey('ctrl', 'shift','u') #creating new identy in tor
time.sleep(3)
#adding in log
f = open(logFile, "a")
f.write('\nThis link was clicked ')
f.write(strClicked)
f.write('\n')
f.close()
# print on terminal
print('went over the page ' ,end='')
print(clicked)
#--------------this was made by capnin and uploaded on github---------------