• 15 апреля стартует «Курс «SQL-injection Master» ©» от команды The Codeby

    За 3 месяца вы пройдете путь от начальных навыков работы с SQL-запросами к базам данных до продвинутых техник. Научитесь находить уязвимости связанные с базами данных, и внедрять произвольный SQL-код в уязвимые приложения.

    На последнюю неделю приходится экзамен, где нужно будет показать свои навыки, взломав ряд уязвимых учебных сайтов, и добыть флаги. Успешно сдавшие экзамен получат сертификат.

    Запись на курс до 25 апреля. Получить промодоступ ...

Как получить грамотно Domain Expiration

  • Автор темы admin
  • Дата начала
A

admin

пишу whois систему.
столкнулся с проблемой такой.
мне надо заносить в БД дату регистрации домена и дату окончания его действия.

как узнать эти вещи? я сейчас просто "выдираю" их из ответа whois сервера, но в зависимости от того кто регистрировал домен ответ бывает разным.

например для codeby.net

Registrar of Record: TUCOWS, INC.
Record last updated on 07-Sep-2005.
Record expires on 21-Sep-2006.
Record created on 21-Sep-2003.

а для fuck.net

  Updated Date: 27-Mar-2006
  Creation Date: 23-Feb-2001
  Expiration Date: 23-Feb-2007

для доменов org вообще другое сообщение.

может можно как-то проще делать, чем обрабатывать все сообщения. кто знает что этот сервер выдаст в ответ :)
 
S

_serg_

Код:
[serg@gw ~]$ whois codeby.net
[Querying whois.internic.net]
[Redirected to whois.opensrs.net]
[Querying whois.opensrs.net]
[whois.opensrs.net]
Registrant:
codeby.net
Necrasov str
Minsk, BY 220040
BY

Domain name: CODEBY.NET

Administrative Contact:
 Zhukovsky, Serge? admin@codeby.net
 Necrasova str.
 Minsk, BY 220040
 BY
 +375172266751
Technical Contact:
 Customer Service, EV1 Servers domains@rackshack.net
 2600 SW Freeway
 Suite 500
 Houston, Texas 77098
 US
 +1.7133337873  Fax: +1.7139429332



Registrar of Record: TUCOWS, INC.
Record last updated on 07-Sep-2005.
Record expires on 21-Sep-2006.
Record created on 21-Sep-2003.

Domain servers in listed order:
 NS3.ACTIVEBY.NET  209.152.167.167
 NS4.ACTIVEBY.NET  216.32.91.23


Domain status: REGISTRAR-LOCK

The Data in the Tucows Registrar WHOIS database is provided to you by Tucows
for information purposes only, and may be used to assist you in obtaining
information about or related to a domain name's registration record.

Tucows makes this information available "as is," and does not guarantee its
accuracy.

By submitting a WHOIS query, you agree that you will use this data only for
lawful purposes and that, under no circumstances will you use this data to:
a) allow, enable, or otherwise support the transmission by e-mail,
telephone, or facsimile of mass, unsolicited, commercial advertising or
solicitations to entities other than the data recipient's own existing
customers; or (b) enable high volume, automated, electronic processes that
send queries or data to the systems of any Registry Operator or
ICANN-Accredited registrar, except as reasonably necessary to register
domain names or modify existing registrations.

The compilation, repackaging, dissemination or other use of this Data is
expressly prohibited without the prior written consent of Tucows.

Tucows reserves the right to terminate your access to the Tucows 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.

Tucows reserves the right to modify these terms at any time.

By submitting this query, you agree to abide by these terms.

NOTE: THE WHOIS DATABASE IS A CONTACT DATABASE ONLY. LACK OF A DOMAIN
RECORD DOES NOT SIGNIFY DOMAIN AVAILABILITY.


[serg@gw ~]$

Код:
[serg@gw ~]$ whois *цензура*.net
[Querying whois.internic.net]
[Redirected to whois.bulkregister.com]
[Querying whois.bulkregister.com]
[whois.bulkregister.com]
The data in BulkRegister, LLC WHOIS database is provided to you by
BulkRegister, LLC for information purposes only, that is, to assist you in
obtaining information about or related to a domain name registration
record. BulkRegister, LLC makes this information available "as is", and
does not guarantee its accuracy. By submitting a WHOIS query, you
agree that you will 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 or bulk unsolicited,
commercial advertising or solicitations via electronic mail, aka (SPAM).
(2) enable high volume, automated, electronic processes that apply
to BulkRegister, LLC (or its systems). The compilation, repackaging,
dissemination or other use of this data is expressly prohibited without
the prior written consent of BulkRegister, LLC. BulkRegister, LLC reserves
the right to modify these terms at any time. By submitting this query,
you agree to abide by these terms.


jwcorp,inc.
 420 north 5th st
 minneapolis, MN 55410
 US

 Domain Name: *цензура*.NET

 Administrative Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:
 Technical Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:
 Billing Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:

 Record updated on 2006-03-27 19:25:19
 Record created on 2001-02-23
 Record expires on 2007-02-23
 Database last updated on 2006-04-03 09:06:07 EST

 Domain servers in listed order:

 NS.LUCRATEC.COM        199.199.208.210
 NS2.LUCRATEC.COM       199.199.208.211

 TransferGuard LOCK Status => ENABLED
[serg@gw ~]$

неудивительно, что результаты разные - они зареганы в разных организациях. разные whois-сервисы - разные результаты вывода. можеш попробовать просканить нмапом или спайдером серванты - мож там и ось напишут на какой они крутяцца...
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!