#!/bin/bash # # Original BASH login&example by http://360percents.com # v1.0 # # Enhanced by chr1x2@systmbx.com # email="YourEmailFBLogin" pass="YourFBPassword" status="${@}" #must be less than 420 chars if [ $(echo "${status}" | wc -c) -gt 420 ]; then echo "FATAL: The status should not be longer than 420 characters!" exit 1 fi if [ -z "$status" ]; then echo Usage: $0 '"My status update"' exit 1 fi touch "cookie.txt" #create a temp. cookie file loginpage=`curl -s -c ./cookie.txt -A "Mozilla/5.0" "http://m.facebook.com"` #initial cookies #LOGIN PARAMETERS form_action=`echo "$loginpage" | tr '"' "\n" | grep "https://www.facebook.com/login.php"` form_data=`echo "$loginpage" | sed -e 's/.*