Beispiel #1
0
def inn_base(self):
	urls = strip_open(self.args.in_file)
	todo = []
	for url in urls:
		if '?' in url:
			todo.extend(replace_params(url, '\''))
	return todo
Beispiel #2
0
def base_scrape_alexa(url, browser_args, out_name, add_http):
	b = Browser(name, **browser_args)
	r = b.go(url)

	zip_file = StringIO(r.content)
	z = ZipFile(zip_file, 'r')
	csv_file = 'top-1m.csv'
	z.extract(csv_file, out_dir)

	file_path = path.join(out_dir, csv_file)
	lines = strip_open(file_path)

	out_path = path.join(out_dir, out_name)
	if add_http:
		os.remove(file_path)
		with open(out_path, 'w+') as f:
			for line in lines:
				print >> f, 'http://' + line.split(',')[1]
	else:
		try:
			os.rename(file_path, out_path)
		except Exception as e:
			pass

	return len(lines)
Beispiel #3
0
def inn_base(self):
    urls = strip_open(self.args.in_file)
    todo = []
    for url in urls:
        if '?' in url:
            todo.extend(replace_params(url, '\''))
    return todo
Beispiel #4
0
def inn_base(self):
        sends = strip_open(self.args.in_file)
        logins = strip_open(self.args.logins_file)
        subjects = strip_open(self.args.subjects_file)
        bodies = strip_open(self.args.bodies_file)

        todo = []
        for send in sends:
            mail_to = send.split(':')
            login = choice(logins).split(':')
            subject = choice(subjects)
            body = choice(bodies)

            usetls = True if login[0] == '1' else False
            info = [usetls, login[1], login[2], login[3], login[4], mail_to[0], mail_to[1], subject, body]
            todo.append(info)
        return todo
Beispiel #5
0
from __future__ import absolute_import

from arachne.utils import celery_output, strip_open, pwd
from arachne.base import Chooser, InObject
from arachne.browser import Browser
from arachne.celery import celery
from celery import Task, group
from re import findall
from os import path
import sys

DEFAULT_WORDLIST = strip_open(
    path.join(pwd, 'arachne', 'scripts', 'defaults', 'wp_pass'))

WP_BUSER = '******'
WP_GDKEY = 'codex'
WP_VALID = ['loginform']

name = 'wp-brute'


def base_wp_init(url, browser_args):
    b = Browser(name, **browser_args)
    r = b.go(url)

    params = {'log': 'admin', 'wp_submit': 'Log In', 'pwd': 'admin'}

    redirect = findall(
        '"redirect_to" value="([\w\d\:\.\/\-\=\&\%\+;\_\?\#\;\,]*)"', r.text)
    testcook = findall(
        '"testcookie" value="([\w\d\:\.\/\-\=\&\%\+;\_\?\#\;\,]*)"', r.text)
Beispiel #6
0
from __future__ import absolute_import

from arachne.utils import celery_output, strip_open, pwd
from arachne.base import Chooser, InObject
from arachne.browser import Browser
from arachne.celery import celery
from celery import Task, group
from re import findall
from os import path
import sys

DEFAULT_WORDLIST = strip_open(path.join(pwd, 'arachne', 'scripts', 'defaults', 'wp_pass'))

WP_BUSER = '******'
WP_GDKEY = 'codex'
WP_VALID = ['loginform']

name = 'wp-brute'
def base_wp_init(url, browser_args):
    b = Browser(name, **browser_args)
    r = b.go(url)

    params = {  'log'       :   'admin',
                'wp_submit' :   'Log In',
                'pwd'       :   'admin'}

    redirect = findall('"redirect_to" value="([\w\d\:\.\/\-\=\&\%\+;\_\?\#\;\,]*)"', r.text)
    testcook = findall('"testcookie" value="([\w\d\:\.\/\-\=\&\%\+;\_\?\#\;\,]*)"', r.text)

    if redirect:
        params['redirect_to'] = redirect[0]
Beispiel #7
0
 def inn_base(self):
     if self.args.in_file:
         return strip_open(self.args.in_file)
     else:
         print('No input file specified!')
         return []
Beispiel #8
0
 def inn_base(self):
     if self.args.in_file:   
         return strip_open(self.args.in_file)
     else:
         print('No input file specified!')
         return []