linkinspector is a command-line tool that analyzes URLs to retrieve HTTP status codes, content lengths, and content types. It features color-coded output, passive checks for specific file extensions, and supports input from stdin or files.
go install github.com/rix4uni/linkinspector@latest
wget https://github.com/rix4uni/linkinspector/releases/download/v0.0.4/linkinspector-linux-amd64-0.0.4.tgz
tar -xvzf linkinspector-linux-amd64-0.0.4.tgz
rm -rf linkinspector-linux-amd64-0.0.4.tgz
mv linkinspector ~/go/bin/linkinspector
Or download binary release for your platform.
git clone --depth 1 github.com/rix4uni/linkinspector.git
cd linkinspector; go install
linkinspector is a command-line tool that analyzes URLs to retrieve HTTP status codes, content lengths, and content types.
Usage:
linkinspector [flags]
Flags:
INPUT:
-u, -target string Single URL to check
-l, -list string File containing list of URLs to check
PROBES:
-passive Enable passive mode to skip requests for specific extensions
MATCHERS:
-mc, -match-code string Match response with specified status code (e.g., -mc 200,302)
-ml, -match-length string Match response with specified content length (e.g., -ml 100,102)
-mt, -match-type string Match response with specified content type (e.g., -mt "application/octet-stream,text/html")
-ms, -match-suffix string Match response with specified suffix name (e.g., -ms "ZIP,PHP,7Z")
OUTPUT:
-o, -output string File to write output results
-append-output string File to append output results instead of overwriting
-json Output in JSON format
-json-type string Output in JSON type, MarshalIndent or Marshal (default "MarshalIndent")
RATE-LIMIT:
-t, -threads int Number of threads to use (default 50)
CONFIGURATIONS:
-H string Custom User-Agent header for HTTP requests (default "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36")
DEBUG:
-verbose Enable verbose output for debugging purposes
-version Print the version of the tool and exit
-silent silent mode
-nc, -no-color disable colors in cli output
OPTIMIZATIONS:
-timeout int HTTP request timeout duration (in seconds) (default 10)
-insecure Disable TLS certificate verification
-delay value Duration between each HTTP request (e.g., 200ms, 1s) (default -1ns)
┌──(root㉿kali)-[/root/linkinspector]
└─# echo "https://linkinspector.netlify.app/nuclei-templates.zip" | linkinspector
┌──(root㉿kali)-[/root/linkinspector]
└─# cat urls.txt | linkinspector
- jpg -
image/jpeg
- png -
image/png
- gif -
image/gif
- webp -
image/webp
- cr2 -
image/x-canon-cr2
- tif -
image/tiff
- bmp -
image/bmp
- heif -
image/heif
- jxr -
image/vnd.ms-photo
- psd -
image/vnd.adobe.photoshop
- ico -
image/vnd.microsoft.icon
- dwg -
image/vnd.dwg
- avif -
image/avif
- mp4 -
video/mp4
- m4v -
video/x-m4v
- mkv -
video/x-matroska
- webm -
video/webm
- mov -
video/quicktime
- avi -
video/x-msvideo
- wmv -
video/x-ms-wmv
- mpg -
video/mpeg
- flv -
video/x-flv
- 3gp -
video/3gpp
- mid -
audio/midi
- mp3 -
audio/mpeg
- m4a -
audio/mp4
- ogg -
audio/ogg
- flac -
audio/x-flac
- wav -
audio/x-wav
- amr -
audio/amr
- aac -
audio/aac
- aiff -
audio/x-aiff
- epub -
application/epub+zip
- zip -
application/zip
- tar -
application/x-tar
- rar -
application/vnd.rar
- gz -
application/gzip
- bz2 -
application/x-bzip2
- 7z -
application/x-7z-compressed
- xz -
application/x-xz
- zstd -
application/zstd
- pdf -
application/pdf
- exe -
application/vnd.microsoft.portable-executable
- swf -
application/x-shockwave-flash
- rtf -
application/rtf
- iso -
application/x-iso9660-image
- eot -
application/octet-stream
- ps -
application/postscript
- sqlite -
application/vnd.sqlite3
- nes -
application/x-nintendo-nes-rom
- crx -
application/x-google-chrome-extension
- cab -
application/vnd.ms-cab-compressed
- deb -
application/vnd.debian.binary-package
- ar -
application/x-unix-archive
- Z -
application/x-compress
- lz -
application/x-lzip
- rpm -
application/x-rpm
- elf -
application/x-executable
- dcm -
application/dicom
- doc -
application/msword
- docx -
application/vnd.openxmlformats-officedocument.wordprocessingml.document
- xls -
application/vnd.ms-excel
- xlsx -
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- ppt -
application/vnd.ms-powerpoint
- pptx -
application/vnd.openxmlformats-officedocument.presentationml.presentation
- woff -
application/font-woff
- woff2 -
application/font-woff
- ttf -
application/font-sfnt
- otf -
application/font-sfnt
- wasm -
application/wasm
- dex -
application/vnd.android.dex
- dey -
application/vnd.android.dey
# add these flags
FILTERS:
-fc, -filter-code string Filter response with specified status code (e.g., -fc 403,401)
-fl, -filter-length string Filter response with specified content length (e.g., -fl 23,33)
-ft, -filter-type string Filter response with specified content type (e.g., -ft "text/html,image/jpeg")
-fs, -filter-suffix string Filter response with specified suffix name (e.g., -fs "CSS,Plain Text,html")