adelashraf / facebook

getting mobile number in Facebook.
GNU General Public License v3.0
1 stars 3 forks source link

Create support for other countries #1

Open KeizerDev opened 8 years ago

KeizerDev commented 8 years ago

I'd like to support another country for this poc. What should I do? I've modified it to my needs and even replaced

    post= 'POST /login/identify/?ctx=recover HTTP/1.1\r\nHost: m.facebook.com\r\nUser-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:40.0) Gecko/20100101 Firefox/40.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nReferer: http://m.facebook.com/\r\nConnection: keep-alive\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 135\r\n\r\nlsd=AVpVXu4Z&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=%2B33'+num+'&did_submit=Search'

The num with my phone nummer to test it but it always give me the 'wrong error message'.

adelashraf commented 8 years ago

just change '%2B33' to to your country code '%2B' = + 33 is the country code num = start + val + b start is the company number code val is the generate 6 slot in number b is the last 2 slot in number