Skip to content

Instantly share code, notes, and snippets.

@bijanebrahimi
Created September 6, 2013 18:57
Show Gist options
  • Save bijanebrahimi/6468343 to your computer and use it in GitHub Desktop.
Save bijanebrahimi/6468343 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "<?php"
curl -s http://www.nnvv.org/ | grep -m 2 -o "\(Password\|Username\):[a-zA-Z0-9\-]\+" | while read line; do
echo $line | sed 's/Username/\$user/' | sed 's/Password/\$pass/' | sed 's/:\(.*\)$/="\1";/'
done
echo "?>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment