Jump to content
aelius

Yahoo ID Validator

Recommended Posts

Posted (edited)

Mass validator pentru ID-uri de yahoo facut in bash


#!/bin/sh

CURL="`which curl`"
GREP="`which grep`"
PARAMS="-s --head"
YAHOO="http://img.msg.yahoo.com/v1/displayImage/yahoo"
INVALID_STR="profile_96"

for i in `cat ids.txt` ; do
if [ -z "`$CURL $PARAMS $YAHOO/$i |$GREP $INVALID_STR`" ]
then
echo "$i - Valid user ID"
else
echo "$i - Invalid user ID"
fi
done

Am facut o lista de test numita 'ids.txt'


flash_seby
amiradavison
elly_deea18
anyta_mary93623
test_teste3r412
jojojaja35r2_r2
anyta_mary94

Test:


macbook ~$ ./val
flash_seby - Valid user ID
amiradavison - Valid user ID
elly_deea18 - Valid user ID
anyta_mary93623 - Invalid user ID
test_teste3r412 - Invalid user ID
jojojaja35r2_r2 - Invalid user ID
anyta_mary94 - Valid user ID
macbook ~$

** Nota: Functioneaza pe orice distributie de linux + FreeBSD si Mac OS X. Sunt necesare doar curl si grep.

Edited by aelius
  • Upvote 1
Posted
Bravo. Dar unde gasesc "profile_96" ? Ca am facut un GET de test, dar nu apare nimic. Multumesc.

Profil existent:


macbook ~$ curl --head http://img.msg.yahoo.com/v1/displayImage/yahoo/flash_seby
HTTP/1.1 200 OK
Date: Sat, 19 Apr 2014 17:49:14 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
cache-control: public,must-revalidate
x-yahoo-msgr-imageurl: http://msgr.zenfs.com/msgrDisImg/5Z5CK35BBKRIN7376POR4ZD2RI
Connection: close
Content-Type:

Profil inexistent:


macbook ~$ curl --head http://img.msg.yahoo.com/v1/displayImage/yahoo/rherssgeaeshaw4wecsa
HTTP/1.1 200 OK
Date: Sat, 19 Apr 2014 17:49:17 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
cache-control: public,must-revalidate
x-yahoo-msgr-imageurl: http://l.yimg.com/a/i/identity/profile_96a.png
Connection: close
Content-Type:

No, bravo. Hai ca fac si eu un PHP repede, sa-l puna baietii pe webhosturi.

get_headers + preg_match (cateva linii in php)

Posted

Un script care verifica daca exista id-urile dintr-o lista e destul de inutil pentru cine nu le are cu php. Un script care verifica o lista de mailuri din care parseaza id-ul sa vada daca exista avatar si salveaza adresele valide complete ( @Yahoo.it etc) e util. I'm just sayin'.

Posted (edited)
Un script care verifica daca exista id-urile dintr-o lista e destul de inutil pentru cine nu le are cu php. Un script care verifica o lista de mailuri din care parseaza id-ul sa vada daca exista avatar e util. I'm just sayin'.

In loc de linia:


for i in `cat ids.txt` ; do

Vine:


for i in `cat ids.txt |awk -F "@" '{print $1}'` ; do

In fisierul ids.txt sunt adrese de email direct. Asa functioneaza si cu lista de email-uri

Test


macbook ~$ ./val
Dicubogdan@yahoo.com - Valid email address
ab.5685@yahoo.com - Valid email address
abramanca@yahoo.com - Invalid email address
adelacretucaragel@yahoo.com - Invalid email address
adinahandolescu@yahoo.com - Valid email address
adinastirbu04@yahoo.com - Valid email address
adinuta_dum@yahoo.com - Valid email address
aditatodea@yahoo.com - Valid email address
adrianagoia999@yahoo.com - Invalid email address
adrianapatrichi@yahoo.com - Invalid email address
alexandrescuoctavian@yahoo.com - Valid email address
alexandru_vajda@yahoo.com - Invalid email address
alexfoto29@yahoo.com - Valid email address
alice.stroe@yahoo.com - Valid email address
aliderviselfida@yahoo.com - Invalid email address
alina.busi@yahoo.com - Invalid email address
alina_cat28@yahoo.com - Valid email address
alina_muresan2004@yahoo.com - Invalid email address
alinaiacob02@yahoo.com - Valid email address
amaliavali@yahoo.com - Valid email address
ana.umbrarescu@yahoo.com - Valid email address
anacovaciu2006@yahoo.com - Valid email address
anaravar93@yahoo.com - Invalid email address
anca_august24@yahoo.com - Valid email address
ancapetrescu2003@yahoo.com - Valid email address
andichis@yahoo.com - Valid email address
andreivilius@yahoo.com - Invalid email address
androre25@yahoo.com - Valid email address
aneleaimiri@yahoo.com - Valid email address
anetabot@yahoo.com - Valid email address
angileu31@yahoo.com - Valid email address
ank_m12@yahoo.com - Valid email address
anusca_sss@yahoo.com - Valid email address
apetroaiec@yahoo.com - Invalid email address
aps28_74@yahoo.com - Invalid email address
aress2u@yahoo.com - Invalid email address
barbujenica32@yahoo.com - Valid email address
becherualina@yahoo.com - Valid email address
beda_ioan@yahoo.com - Valid email address
bia_81tl@yahoo.com - Valid email address
biancatanase@yahoo.com - Valid email address
bianka.bogdan@yahoo.com - Valid email address
bobutzu_81@yahoo.com - Valid email address
bogdan181984@yahoo.com - Valid email address
bubulinna_1980@yahoo.com - Valid email address
camelia_clem@yahoo.com - Valid email address
camelia_ursut@yahoo.com - Invalid email address
cami.fogorosi@yahoo.com - Invalid email address
carllyka@yahoo.com - Valid email address
carmen.armeanu@yahoo.com - Valid email address
carmen_leo2003@yahoo.com - Valid email address

Edited by aelius

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...