Skip to content

Instantly share code, notes, and snippets.

@kalimalrazif
Created February 26, 2016 21:45
Show Gist options
  • Save kalimalrazif/b3998b7883017eaf892f to your computer and use it in GitHub Desktop.
Save kalimalrazif/b3998b7883017eaf892f to your computer and use it in GitHub Desktop.
Detectar malware de linea larga
#!/bin/bash
for archivo in `find ./ -type f | grep php`; do
echo; echo ------- $archivo -------;
awk 'length > max_length { max_length = length; longest_line = $0 } END { print longest_line }' $archivo;
echo ------- $archivo -------; echo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment