/usr/lib/gozerbot/webtest.py is in gozerbot 0.99.1-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #! /usr/bin/python
#
#
from gozerbot.generic import geturl
from gozerbot.examples import examples
from gozerbot.plugins import plugins
from gozerbot.thr import start_new_thread
import random, os, time
plugins.regplugins()
donot = ['reboot', 'cycle', 'loglevel', 'quit', 'email', 'meet', 'nick', \
'part', 'cc', 'chat', 'join', ' nick', 'update', 'install', \
'reconnect', 'jump', 'nonfree', 'relay', 'rss', 'fleet', 'sendraw', \
'upgrade', 'alarm', 'remind', 'intro', 'host', 'ip', 'alarm', 'tests', \
'unload', 'delete', 'dfwiki', 'dig', 'silent', 'reconnect', 'switch', 'op',
'dict', 'slashdot', 'films', 'latest', 'weather', 'coll', 'web', 'mail', \
'markov', 'probe', 'sc']
def dowebtest(nrloop):
a = examples.getexamples()
teller = 0
while 1:
nrloop -= 1
if nrloop == 0:
break
random.shuffle(a)
for z in a:
teller += 1
no = 0
for zz in donot:
if z.find(zz) != -1:
no = 1
break
print z
try:
print geturl('http://localhost:8088/dispatch?command=%s' % z)
except IOError:
pass
except:
os._exit(0)
for i in range(100):
start_new_thread(dowebtest, (10, ))
try:
while 1:
time.sleep(1)
except:
os._exit(0)
|