grep for http link in binary files
Hey,
grep -Rn domainnameofwebsite . Binary file ./blaaA matches Binary file ./blaaB matches Binary file ./blaaC matches Binary file ./blaaD matches ... How can I get grep to output the entire link? Is there a way to have it show 20 characters forward from where it finds my search string? Thanks ;) |
You might want to try something like
for httpfile in `ls .` do echo "File is $httpfile and grep shows:" strings $httpfile |grep domainnameofwebsite done The strings command looks for text in a binary and prints it out. (Of course it prints a lot of gobbledygook as well but your grep should restrict it to the information you want. |
thank you! that's amazing
|
All times are GMT -5. The time now is 11:02 AM. |