Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- #
- rm -f /tmp/cookies.txt
- USER='' # Usuario o email
- PASS='' # Contraseña
- curl -X GET 'https://www.facebook.com/home.php' --user-agent 'Firefox/3.5' --cookie '/tmp/cookies.txt' --cookie-jar '/tmp/cookies.txt' --location &> /dev/null
- curl -X POST 'https://login.facebook.com/login.php' --user-agent 'Firefox/3.5' --data-urlencode "email=${USER}" --data-urlencode "pass=${PASS}" --cookie '/tmp/cookies.txt' --cookie-jar '/tmp/cookies.txt' &> /dev/null
- HTML=$( curl -X GET 'https://www.facebook.com/home.php' --verbose --user-agent 'Firefox/3.5' --cookie '/tmp/cookies.txt' --cookie-jar '/tmp/cookies.txt' )
- ID='' # ID del usuario a capturar
- PosixTime=$( echo $HTML | egrep -io "\"${ID}\":[0-9]+," | cut -d ':' -f 2 | tr -d ',' )
- clear
- echo -e "\n\n\t Se conecto $( date -d @${PosixTime} +"el %d/%m/%Y a las %H:%M:%S" ). \n\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement