コード例 #1
0
ファイル: plugin.py プロジェクト: x0rzkov/phpsploit
      - look for all cloud credentials in all user directories
    > cloudcredgrab -u www aws
      - look for AWS credentials in www's user files

AUTHOR:
    Jose <https://twitter.com/jnazario>
"""

import sys

from api import plugin
from api import server

import plugin_args

if len(plugin.argv) != 1:
    sys.exit(plugin.help)

# options are not used for the moment...
opt = plugin_args.parse(plugin.argv[1:])

payload = server.payload.Payload("payload.php")

result = payload.send()

print("%5s %40s" % ("PID", "INFORMATION"))
print("%5s %40s" % ("---", "-----------"))
for elem in results:
    pid, info = elem.split(" ", 1)
    print("%5s %40s" % (pid, info.strip()))
コード例 #2
0
ファイル: plugin.py プロジェクト: shiney-wh/phpsploit
import sys
import os
import time
import json

from api import plugin
from api import server

from ui.color import colorize
import plugin_args

if len(plugin.argv) < 2:
    sys.exit(plugin.help)

opt = plugin_args.parse(plugin.argv[1:])

# Send payload
payload = server.payload.Payload("scanner.php")
payload['IP'] = opt['address']
payload['PORT_MIN'] = opt['port'][0]
payload['PORT_MAX'] = opt['port'][1]
payload['TIMEOUT'] = opt['timeout']

result = payload.send()

# unshuffle port list
result.sort(key=lambda x: x[0])

# Load port -> service database
with open(os.path.join(plugin.path, "ports.json")) as database_ports: