|
Intent Script |
|
If city is not equal to an empty string concatenate the strings city, ',' and country to geoLoc if city != '': \n geoLoc = city + ', ' + country |
|
Except assigne to variable e and return the value 'Unregistered' except Exception as e: \n return 'Unregistered' |
|
If ret equals 2 then Call the method sendline with argument 'yes' of child and Call the function connect with arguments user, host, keyfile and False if ret == 2: \n child.sendline('yes') \n connect(user, host, keyfile, False) |
|
For each client in botNet call the function send_command with argument command and assign the value to output for client in botNet: \n output = client.send_command(command) |
|
Define the method __init__ with arguments self, title, text and url, assign to title of self the value title, assign to text of self the value text and assign to text of self the value text def __init__(self,title,text,url): \n self.title = title \n self.text = text \n self.url = url \n |
|
"Connect to the database skypeDB and execute the command ""SELECT fullname, skypename, city, country, datetime(profile_timestamp,'unixepoch') FROM Accounts;""" "def printProfile(skypeDB): \n conn = sqlite3.connect(skypeDB) \n c = conn.cursor() \n c.execute(""SELECT fullname, skypename, city, country, datetime(profile_timestamp,'unixepoch') FROM Accounts;"" \n" |
|
If the function has_key with argument 'href' of link returns True do nothing if link.has_key('href'): \n pass |
|
For each cookie in the cookie_jar of ab do nothing for cookie in ab.cookie_jar: \n pass |
|
Except assign an empty list to dirList and exit the function except: \n dirList = [] \n return |
|
finally call method release on screenLock with no arguments and method close on screenLock with no argument finally: \n screenlock.release() \n screenLock.close() |
|
Costruct the class with host, user and password, then connect def __init__(self, host, user, password): \n self.host = host \n self.user = user \n self.password = password \n self.session = self.connect() \n |
|
If pktsSent is more than THRESH take the first argument of stream splitted at ':' and assign it to src and take the second argument of stream splitted at ':' and assign it to dst if pktsSent > THRESH: \n src = stream.split(':')[0] \n dst = stream.split(':')[1] |
|
For each cookie in the cookie_jar do nothing for cookie in cookie_jar: \n pass |
|
Define the function addClient with arguments host, user and password then Call the class Client with argumet host, user and password and assign it to client then Call the method append on botNet with argument client def addClient(host, user, password): \ n client = Client(host, user, password) \n botNet.append(client) |
|
If the substring '.zip' is in uri and the substring 'loic' is in uri do nothing if '.zip' in uri and 'loic' in uri: \n pass |
|
Except do nothing except: \n pass \n |
|
If iface of options is equal to None assign to iface the string 'eth0' if options.iface == None: \n iface = 'eth0' |
|
|