m4ll0k / SecretFinder

SecretFinder - A python script for find sensitive data (apikeys, accesstoken,jwt,..) and search anything on javascript files
GNU General Public License v3.0
2k stars 373 forks source link

replace ' ' with '' in ligne 358 break space in header (like auth basic) #76

Open 0x25 opened 11 months ago

0x25 commented 11 months ago

Need to add auth basic header

python3 SecretFinder.py -i https://URL -H 'Authorization:Basic dXNlcjpwYXNzd2Q=' -o cli

but the line name,value = i.replace(' ','').split(':') just remove space between Basic and Base64 value.

Authorization:BasicdXNlcjpwYXNzd2Q= who is not a valid header

need to patch and remove the replace

name,value = i.split(':')