Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
salt = hash('sha256', email); // user_id может даже лучше. Так как мыло может поменяться и надо будет дополнительно перехешировать ==> писать дополнительный код.
pwd_hash = hash('whirlpool', salt .password);
sha1(dict_word1);
sha1(dict_word2);
...
sha1(dict_wordn);
sha1(user1salt+dict_word1);
sha1(user1salt+dict_word2);
...
sha1(user1salt+dict_wordn);
//User 2
sha1(user2salt+dict_word1);
sha1(user2salt+dict_word2);
...
sha1(user2salt+dict_wordn);
function hashUserPassword($nick, $pass) {
$salt = "C++0x FOReVEr i LovE_iT";
return md5( sha1($nick)+sha1($pass.$salt) );
}
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: YANDEX.NET
Registrar: SAFENAMES LTD
Whois Server: whois.safenames.net
Referral URL: http://www.safenames.net
Name Server: NS1.YANDEX.NET
Name Server: NS2.YANDEX.NET
Status: clientDeleteProhibited
Status: clientTransferProhibited
Updated Date: 03-may-2012
Creation Date: 14-nov-2000
Expiration Date: 14-nov-2013
>>> Last update of whois database: Wed, 06 Jun 2012 14:30:00 UTC <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
Safenames - Experts in Global Domain Management and Online Brand Protection
Domain Registration in over 760 different extensions
Enterprise Domain Management since 1999
Mark Protect™ Online Brand Monitoring and Enforcement
Domain Consulting and Strategy
Domain Name Acquisition
Domain Disputes and Recovery
Visit Safenames at www.safenames.net
+1 703 574 5313 in the US/Canada
+44 1908 200022 in Europe
Domain Name: YANDEX.NET
[REGISTRANT]
Organisation Name: YANDEX LLC
Contact Name: Tatiana Bakharevskaya
Address Line 1: 16 Lva Tolstogo str.,
Address Line 2:
City / Town: Moscow
State / Province:
Zip / Postcode: 119021
Country: RU
Telephone: +7.4957397000
Fax:
Email: noc@yandex.net
[ADMIN]
Organisation Name: Safenames Ltd
Contact Name: International Domain Administrator
Address Line 1: Safenames House, Sunrise Parkway
Address Line 2:
City / Town: Milton Keynes
State / Province: Bucks
Zip / Postcode: MK14 6LS
Country: UK
Telephone: +44.1908200022
Fax: +44.1908325192
Email: hostmaster@safenames.net
[TECHNICAL]
Organisation Name: International Domain Tech
Contact Name: International Domain Tech
Address Line 1: Safenames House, Sunrise Parkway
Address Line 2:
City / Town: Milton Keynes
State / Province: Bucks
Zip / Postcode: MK14 6LS
Country: UK
Telephone: +44.1908200022
Fax: +44.1908325192
Email: tec@safenames.net
The Data in the Safenames Registrar WHOIS database is provided by Safenames for
information purposes only, and to assist persons in obtaining information about
or related to a domain name registration record. Safenames does not guarantee
its accuracy. Additionally, the data may not reflect updates to billing
contact information.
By submitting a WHOIS query, you agree to use this Data only for lawful purposes
and that under no circumstances will you use this Data to:
(1) allow, enable, or otherwise support the transmission of mass unsolicited,
commercial advertising or solicitations via e-mail, telephone, or facsimile; or
(2) enable high volume, automated, electronic processes that apply to Safenames
(or its computer systems). The compilation, repackaging, dissemination or
other use of this Data is expressly prohibited without the prior written
consent of Safenames. Safenames reserves the right to terminate your access to
the Safenames Registrar WHOIS database in its sole discretion, including
without limitation, for excessive querying of the WHOIS database or for failure
to otherwise abide by this policy. Safenames reserves the right to modify
these terms at any time. By submitting this query, you agree to abide by this
policy.$ wc -l combo_not.txt
6458020 combo_not.txt
$ sort combo_not.txt | uniq | wc -l
6458020pass=$(echo -n password | sha1sum | awk '{print $1}' | cut -b6-40)
grep --color "${pass}" combo_not.txt
grep $(echo -n trolling | sha1sum | awk '{print $1}' | cut -b6-40) combo_not.txtimport hashlib,sys
try:
pwd = sys.argv[1]
hash = hashlib.sha1()
hash.update(sys.argv[1])
hash = hash.hexdigest()[5:]
for str in open('combo_not.txt','r'):
if str.count(hash):
print(str)
except IndexError:
sys.exit('usage: %s password' % sys.argv[0])
import hashlib, sys
try:
pwd = sys.argv[1]
except IndexError:
sys.exit('Usage: %s password' % sys.argv[0])
hash = hashlib.sha1()
hash.update(sys.argv[1])
hash = hash.hexdigest()[5:]
if hash in open('combo_not.txt').read():
print "Hash found"
else:
print "No such hash"
А зачем продолжать продвигаться по циклу, когда хэш уже найден?это был промежуточный вариант, изначально хотел найти все интересующие меня пароли.
import hashlib,sys
def sha1(pwd):
hash = hashlib.sha1()
hash.update(pwd)
return hash.hexdigest()[5:]
if len(sys.argv) > 1:
hashes = [ [pwd,sha1(pwd)] for pwd in sys.argv[1:] ]
for str in open('combo_not.txt','r'):
for pwd,hash in hashes:
if str.count(hash):
print('%s %s' % (str[:-1],pwd))
hashes.remove([pwd,hash])
if len(hashes) == 0:
break
else:
sys.exit('usage: %s pwd1 [ pwd2 .. ]' % sys.argv[0])
if len(hashes) == 0:
break
for pwd,hash in hashes[:]:
import hashlib
db = file('SHA1.txt', 'r').read().splitlines()
plist = file('plist.txt', 'r').read().splitlines()
hashes = {}
for pwd in plist:
hash1 = hashlib.sha1(pwd).hexdigest()
hash2 = '00000' + hash1[5:]
hashes[hash1] = pwd
hashes[hash2] = pwd
found = set(db).intersection(set(hashes.keys()))
for r in found:
print r, hashes[r]
отправляет запрос на сервер с паролями: {«user»: «vasya», «password»: «kr39ve21f5»}.
3. Packet Format
…
The NAS and RADIUS server share a secret. That shared secret
followed by the Request Authenticator is put through a one-way
MD5 hash to create a 16 octet digest value which is xored with
the password entered by the user, and the xored result placed
in the User-Password attribute in the Access-Request packet.
See the entry for User-Password in the section on Attributes
for a more detailed description.
Стоит отметить, что затронутые этим пользователи, которые обновят свои пароли, а также пользователи, чьи пароли не были скомпрометированы, извлекут пользу от улучшенных мер безопасности, которые мы только недавно ввели в действие, включая хэширование и добавление соли ко всем текущим базам данных с паролями"
UPD2. Появился сайт leakedin.org/, на котором можно проверить есть ли ваш пароль в той самой базе хэшей
Утекла база LinkedIn хэшей?