-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathISruption.py
More file actions
52 lines (41 loc) · 1.3 KB
/
ISruption.py
File metadata and controls
52 lines (41 loc) · 1.3 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
#!/usr/bin/python env
# Disruption
# Auto search and silence ISIS
"""
README:
DEPENDENCIES:
- You need pygoogle, grab it from here and install it:
https://github.com/rnikhil275/pygoogle
-- git clone https://github.com/rnikhil275/pygoogle
-- cd pygoogle;sudo pip install 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:
-- wget -O strippedkws http://pastebin.com/raw.php?i=vyb8bjjm
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.
"""
#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])
print("Searching for...")
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()