Notes on Security and Research
Thursday, February 8, 2007
Perl Scripting to Decode Encoded or Escaped Pages
Basic form
> cat file.htm | perl -pe 's///ge'
Now fill in the searches and substitution functions between the slashes. Final form:
> echo "test1%202%203%20" | perl -pe 's/\%(..)/chr(hex($1))/ge'
test1 2 3
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment