Yes, I know, someone somewhere created a tool that does this. I just want to create my own and there's nothing you can do to stop me :) This will be a target profiling tool used in red teaming exercises. Currently still prototyping and testing various features, so if you have any ideas, this is the moment when they will have the most impact on development.
git clone https://github.com/madalin-dogaru/profiler.git
pip install -r requirements.txt
- Install Holehe (must be accessible via global path)
For now you will have to build your image locally, although I created an official image here: https://hub.docker.com/r/iot41/profiler
, given you need to add you api keys either I change the profiler to accept API keys via cli parameters or environment variables, not happy with either of them, still searching for more elegant solutions.
git clone https://github.com/madalin-dogaru/profiler.git
cd profiler
- Add your API keys/secrets in
dorks_search.py
andgodaddy_search.py
- Build the docker image:
docker build -t profiler:0.1 .
[+] Building 5.8s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 722B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.11 2.2s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [1/4] FROM docker.io/library/python:3.11@sha256:2dd2f9000021839e8fba0debd8a2308c7e26f95fdfbc0c728eeb0b5b9a8c6a39 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 303.03kB 0.0s
=> CACHED [2/4] WORKDIR /app 0.0s
=> [3/4] COPY . /app 0.0s
=> [4/4] RUN pip install --no-cache-dir -r requirements.txt 3.4s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:1143d5dc1a7445fa8368e9fc95d934149274ad08f6b9ef09f489b1713f7db61f 0.0s
=> => naming to docker.io/library/profiler:0.1
- When using features that require local files, you need to mount the file and then use it. Example below:
docker run -v /Users/User/tools/dorks_example_file:/app/dorks_example_file profiler:0.1 python profiler.py -dork samsung.com -f /app/dorks_example_file
Use the power of Holehe to check on what websites a user created accounts. I've added functionality so a list of emails can be specified from a file and the results are filtered to show only valid accounts.
Additionally -om
or --format-csv
flag can be provided to output the mails in CSV format.
python3 profiler.py -mails ~/tools/emails -om findings.csv
Perform powerful Google dorks searches using SerpApi integration: You need to supply a file with google dorks(one per line) and a target domain. You need an SerpAPI API key.
python3 profiler.py -dork smartree.com -f workfiles/dorks_list_file_name
Scan all the files inside a folder for URLs and print them in the terminal. Or add -o and give it a file to the write the info in.
python3 profiler.py -url ~/path/to/folder
Read firstname/lastname from a file(1 pair per line) and the email domain and output all common emails in a file.
python3 profiler.py -egen workfiles/names -edom microsoft.com -o results/test
Supply a domain and get other available suffixes on goddady.com (requires API token).
python3 profiler.py -daddy microsoft.com
Supply a username and get a list of websites where the username exists
python3 profiler.py -u USERNAME
Supply a domain and get similarly looking domains for that domain and suffix that are available on godaddy.com. (requires API token)
python3 profiler.py -domphish microsoft.com
Take a list of IP's, get their Country/City/Area and write it in a file(including the IPs).
python3 profiler.py -iplist workfiles/file_containing_ips -o results/output_file_name
Specify a single IP and print in the terminal the IP/Country/City/Area.
python3 profiler.py -ip zf.ro
Take a list of domains, get their IPs/Country/City/Area and write it in a file.
python3 profiler.py -dlist workfiles/file_containing_domains -o results/output_file_name
Specify a single domain and print in the terminal the IP/Country/City/Area.
python3 profiler.py -d zf.ro
python3 profiler.py -h