Coder Social home page Coder Social logo

Comments (3)

rpgmaster280 avatar rpgmaster280 commented on July 19, 2024

This issue was already reported (along with a fix) here: #177

from recon-ng.

gioguanuo avatar gioguanuo commented on July 19, 2024

Sorry sir,
I have modified the python script as the instruction but the problem persist.
Please what can I investigate?
Thank you in advance

from recon.core.module import BaseModule
from recon.mixins.threads import ThreadingMixin
from urllib.parse import quote_plus

class Module(BaseModule, ThreadingMixin):

meta = {
    'name': 'OSINT HUMINT Profile Collector',
    'author': 'Micah Hoffman (@WebBreacher)',
    'version': '1.0',
    'description': 'Takes each username from the profiles table and searches a variety of web sites for those users. The list of valid sites comes from the parent project at https://git>
    'comments': (
        'Note: The global timeout option may need to be increased to support slower sites.',
        'Warning: Using this module behind a filtering proxy may cause false negatives as some of these sites may be blocked.',
    ),
    'query': 'SELECT DISTINCT username FROM profiles WHERE username IS NOT NULL',
}

def module_run(self, usernames):
    # retrieve list of sites
    # url = 'https://raw.githubusercontent.com/WebBreacher/WhatsMyName/master/web_accounts_list.json'
    url = 'https://raw.githubusercontent.com/WebBreacher/WhatsMyName/main/wmn-data.json'
    self.verbose(f"Retrieving {url}...")
    resp = self.request('GET', url)
    for user in usernames: 
        self.heading(f"Looking up data for: {user}")
        self.thread(resp.json()['sites'], user)


			
def module_thread(self, site, user):
    d = dict(site)
    if d['valid'] == True:
        self.verbose(f"Checking: {d['name']}")
        url = d['uri_check'].replace('{account}', quote_plus(user))
        resp = self.request('GET', url, allow_redirects=False)
        if resp.status_code == int(d['e_code']):
            self.debug(f"Codes matched {resp.status_code} {d['e_code']}")
            if d['e_string'] in resp.text or d['e_string'] in resp.headers:
                self.insert_profiles(username=user, url=url, resource=d['name'], cat=d['cat'])
                self.query('DELETE FROM profiles WHERE username = ? and url IS NULL', (user,))

from recon-ng.

lanmaster53 avatar lanmaster53 commented on July 19, 2024

All module related issues, including dependencies, should be raised in the module repository.

A fix for this problem has been merged.

from recon-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.