-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathisdruption.py
More file actions
55 lines (40 loc) · 1.22 KB
/
isdruption.py
File metadata and controls
55 lines (40 loc) · 1.22 KB
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
#!/usr/bin/python env
# ISdrUpTiOn
# Auto search and silence ISIS
"""
README:
DEPENDENCIES:
- You need pygoogle, grab it from here and install it:
https://github.com/rnikhil275/pygoogle
- You also need the trunacated list of search terms:
http://pastebin.com/vyb8bjjm
Save it as 'strippedkws' in the same directory as this script.
Now just run the script and analyze the results. This saves a lot of
time because this script automatically chooses 3 keywords and searches google
for you. The results are returned to stout in the terminal. If someone wants to
help figure out what comes next, please PM me on irc.anonops.com , my sn is
shellzrus.
"""
#choose 3 keywords
from random import randint
import os
import subprocess
from pygoogle import pygoogle
num_lines = sum(1 for line in open('strippedkws'))
print("%s lines in keyword file" % num_lines)
a = (randint(0,(num_lines)))
b = (randint(0,(num_lines)))
c = (randint(0,(num_lines)))
f=open('strippedkws')
lines=f.readlines()
a = (lines[a])
b = (lines[b])
c = (lines[c])
for i in a,b,c:
print (i)
g = pygoogle(i)
g.pages = 5
print '*Found %s results*'%(g.get_result_count())
g.get_urls()
g.get_urls()
g.display_results()