-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquickstart.kt
121 lines (90 loc) · 2.74 KB
/
quickstart.kt
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import modules.IAC
import modules.Login
import modules.Like
import modules.Comment
import java.io.File
import java.util.concurrent.CyclicBarrier
val emails = File("\\txt_files\\getEmails.txt").readLines()
val passwords = File("\\txt_file\\getPasswords.txt").readLines()
val proxies = File("\\txt_files\\getProxies.txt").readLines()
val usernames = File("\\txt_files\\getUsernames.txt").readLines()
// FOR CREATING ACCOUNTS
/*class run : Runnable {
private val gate : CyclicBarrier? = null
private var i : Int ?= null
constructor(i : Int) {
this.i = i
}
override fun run() {
this.gate?.await()
(0..this.i!!).forEach() {
val c = IAC(true, true, proxies[it], usernames[it], passwords[it], emails[it])
}
println("${Thread.currentThread()} Finished")
}
}
fun main() {
val howManyAccs : Int = 10
for (i in (0..howManyAccs)) {
val r = run(howManyAccs)
val t = Thread(r)
t.start()
}
}*/
// FOR LIKING
/*class run : Runnable {
private val gate : CyclicBarrier? = null
private var i : Int ?= null
private var linkTarget : String ?= null
constructor(i : Int, linkTarget : String) {
this.i = i
this.linkTarget = linkTarget
}
override fun run() {
this.gate?.await()
(0..this.i!!).forEach() {
val c = Login(usernames[it], passwords[it])
val l = Like(this.linkTarget)
}
println("${Thread.currentThread()} Finished")
}
}
fun main() {
val howManyAccs : Int = 10
val linktTarget : String = "url"
for (i in (0..howManyAccs)) {
val r = run(howManyAccs, linktTarget)
val t = Thread(r)
t.start()
}
}*/
// FOR COMMENTING
/*class run : Runnable {
private val gate : CyclicBarrier? = null
private var i : Int ?= null
private var linkTarget : String ?= null
private var text : String ?= null
constructor(i : Int, linkTarget : String, text : String) {
this.i = i
this.linkTarget = linkTarget
this.text = text
}
override fun run() {
this.gate?.await()
(0..this.i!!).forEach() {
val c = Login(usernames[it], passwords[it])
val l = this.linkTarget?.let { it1 -> this.text?.let { it2 -> Comment(it1, it2) } }
}
println("${Thread.currentThread()} Finished")
}
}
fun main() {
val howManyAccs : Int = 10
val linktTarget : String = "url"
val text : String = "some text"
for (i in (0..howManyAccs)) {
val r = run(howManyAccs, linktTarget, text)
val t = Thread(r)
t.start()
}
}*/