Hack Forums
PDF Extractor Your PDF Osint tool - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Whitehat • Blue Team • Defensive Security (https://hackforums.net/forumdisplay.php?fid=448)
+---- Forum: OpSec and OSINT (https://hackforums.net/forumdisplay.php?fid=322)
+---- Thread: PDF Extractor Your PDF Osint tool (/showthread.php?tid=6308122)



PDF Extractor Your PDF Osint tool - HerrWinston - Sep 13, 2025

PDFextractor - The Osint Tool designed to make your life easier!
Look at the bottom for the source code to make it YOUR tool!

This tool scans PDF files for interesting artifacts often hidden inside documents:

URLs

Emails

IP addresses

Obfuscated links

Domains

It generates a console summary + saves a structured JSON report.

Useful for OSINT or malware analysis.

Spoiler (Click to View)
Spoiler (Click to View)

How it works:

Uses pdfminer.six to extract visible text.

Uses PyPDF2 to pull annotation links.

Reads raw byte data (latin1 decode) to catch hidden strings.

Regex patterns detect URLs, emails, IPs, and simple obfuscations.

Domains are normalized with tldextract.



Dont wanna mess with python? No problem!

The Solution is the .exe file you can purchase below. (If you dont have the bytes for it, either reply down here or send me a PM)

You will want to add it to PATH so lets make a little tutorial on how to do this fully in your terminal!

Why would you want it?

By adding it to your path you dont need to write the whole path down everytime when executing a command for example:
path\to\pdfexctractor -i

By adding it you can write:

pdfextractor -i


So how does that work? (Windows Tutorial)

1. First type:
Code
mkdir C:\[desired folder name]
to generate a folder for the tool!

2. Now lets move the .exe in there with:
Code
path\to\pdfexctractor.exe C:\[desired folder name]

3. The most important part adding it to the path:
Code
$add = "C:\Tools"
$up  = [Environment]::GetEnvironmentVariable('Path','User')
if (-not ($up.Split(';') -contains $add)) {
    [Environment]::SetEnvironmentVariable('Path', ($up + ';' + $add), 'User')
    Write-Host "C:\Tools added to PATH. Restart your terminal."
} else {
    Write-Host "C:\Tools is already in PATH."
}

4. Restart your Powershell terminal!
5. Test it with:
Code
where pdfextractor
this should print: C:\Tools\pdfextractor.exe

6. pdfextractor --info
If you see the info page its working perfectly!


Example Usage of the .exe:

Code
pdfextractor "C:\Users\You\Documents\sample.pdf" --pretty
Generates sample_links.json in the same folder.

The full source code you can put your personal touch to:


Spoiler (Click to View)


This thread is the entry for the amazing contest from 7 , caring about the community and getting HQ content on this Forum again, thank you man!


RE: PDF Extractor Your PDF Osint tool - itcorp - Sep 13, 2025

I'm glad you joined to this great contest by 7 .I can't wait to see the further evolution of this tool from you.Nice share buddy!


RE: PDF Extractor Your PDF Osint tool - CL1B - Sep 14, 2025

Yes HerrWinston Yes

This is good, I hope to see more of your work in the future.


RE: PDF Extractor Your PDF Osint tool - blko57 - Sep 15, 2025

thanks bro


RE: PDF Extractor Your PDF Osint tool - Corban8888 - Sep 16, 2025

great! Thanks


RE: PDF Extractor Your PDF Osint tool - CL1B - Sep 24, 2025

Spoiler (Click to View)