This file is indexed.

/usr/bin/jsb-xmpp is in jsonbot 0.84.4-1.

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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/python
#
#

## bootstrap

import warnings
warnings.simplefilter("ignore")

import os, sys
sys.path.insert(0, os.getcwd())


## jsb impors

from jsb.lib.threads import start_new_thread
from jsb.drivers.xmpp.bot import SXMPPBot
from jsb.lib.boot import plugin_packages, boot
from jsb.utils.log import setloglevel
from jsb.lib.config import Config, getmainconfig
from jsb.lib.errors import NoOwnerSet
from jsb.lib.fleet import getfleet
from jsb.utils.mainloop import mainloop
from jsb.utils.opts import makesxmppopts, makesxmppconfig
from jsb.lib.datadir import setdatadir, getdatadir
from jsb.lib.exit import globalshutdown
from jsb.utils.exception import handle_exception
import jsb.lib.users as users
import jsb

## basic imports

import logging
import time
import os

## options parser

opts = makesxmppopts()
if opts.datadir: setdatadir(opts.datadir) 
from jsb.version import getversion
print getversion('SXMPP')

## loglevel


from jsb.utils.log import setloglevel
setloglevel(opts.loglevel or "warn", not opts.nocolors)

try: cfg = makesxmppconfig(opts)
except Exception, ex: print str(ex) ; os._exit(1)
got = False
if opts.nick: cfg.nick = opts.nick ; got = True
if opts.port: cfg.port = opts.port ; got = True
if opts.user: cfg.user = opts.user ; got = True
if opts.password: cfg.password = opts.password ; got = True
if cfg.disabled: cfg.disabled = 0 ; got = True
if got: cfg.save()

## start bot

boot(opts.datadir)

try:
    bot = SXMPPBot(cfg, register=opts.doregister)
except NoOwnerSet, ex:
    print "owner is not set in %s - use the -o option" % str(ex)
    os._exit(1)

if opts.channel and not opts.channel in bot.state['joinedchannels']:
    bot.state['joinedchannels'].append(opts.channel)
    bot.state.save()

start_new_thread(bot.boot, ())
mainloop()