Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 29 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Malware
Basic Exploit Helo
EH-Net
May 20, 2013, 12:14:07 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Malware
(Moderator:
don
) >
Basic Exploit Helo
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Basic Exploit Helo (Read 11363 times)
0 Members and 1 Guest are viewing this topic.
impelse
Hero Member
Online
Posts: 565
Basic Exploit Helo
«
on:
July 27, 2009, 11:08:59 AM »
I know this is a basic question and I tried to find the answer in remote-exploit.org forum.
I am trying to exploit a CUPS1.1 port (printer service) and I found this site with this exploit:
http://www.securiteam.com/exploits/5ZP031F8VA.html
I really do not know what to do with this, I downloaded it and save it cups.pl and I try to run in with different way but do not work. Any suggestion please.
Thanks.
Logged
CCNA, Security+, 70-290, 70-291
CCNA Security
Taking Hackingdojo training
Website:
http://blog.thehost1.com/
Ketchup
Hero Member
Offline
Posts: 1021
Re: Basic Exploit Helo
«
Reply #1 on:
July 27, 2009, 01:35:32 PM »
That's not perl code. That's C code. You have to compile the code in order for you to execute. You do have permission to exploit the device, right? I would recommend that you understand what you are doing and fully understand the exploit code before you execute it.
Logged
~~~~~~~~~~~~~~
Ketchup
impelse
Hero Member
Online
Posts: 565
Re: Basic Exploit Cups
«
Reply #2 on:
July 27, 2009, 01:42:51 PM »
I am doing the Heorot.net's training disk in a isolated network with backtrack 4 pre-final.
I have to exploit to run one for cups and one for apache 2.2.4 but they are not in Metasploit
Logged
CCNA, Security+, 70-290, 70-291
CCNA Security
Taking Hackingdojo training
Website:
http://blog.thehost1.com/
Ketchup
Hero Member
Offline
Posts: 1021
Re: Basic Exploit Helo
«
Reply #3 on:
July 27, 2009, 03:03:33 PM »
Ah, I see. Here is how you would compile the exploit on a Linux box:
1. Save the file from the web as cups_exploit.c
2. gcc -o cups_exploit cups_exploit.c
Then just execute the ./cups_exploit program.
Note, I have not looked at the code, so I cannot tell you if this is a legit exploit or if it will simply frag your hard drive.
Logged
~~~~~~~~~~~~~~
Ketchup
impelse
Hero Member
Online
Posts: 565
Re: Basic Exploit Helo
«
Reply #4 on:
July 27, 2009, 03:15:48 PM »
I did:
gcc -o cups cups.c
./cups 192.168.1.101 631
and
./cups 192.168.1.101 80
And did not work, I did not get shell
I tried a DoS that I found in milw0rm.com to crash the service in port 631 and try to run cups exploit in port 80 and viceverse and did not work,
I am sure that I will get the shell in someway in the port 631.
I am trying to check also Apache 2.2.4 exploits but I only found DoS.
Do you crash some services to get access through another service, is that commond? I do not know if that works but I am trying
Logged
CCNA, Security+, 70-290, 70-291
CCNA Security
Taking Hackingdojo training
Website:
http://blog.thehost1.com/
Ketchup
Hero Member
Offline
Posts: 1021
Re: Basic Exploit Helo
«
Reply #5 on:
July 27, 2009, 04:53:02 PM »
Well, you don't appear to running the exploit correctly. Here is the usage section from the exploit:
Code:
void usage(char *p) {
printf(
"Remote CUPS exploit for 1.1.17 and earlier versions\n"
"by sigdoom [at] bigbox.mine.nu\n"
"Usage: %s [-t <target>, -p <port>, -o <offset>, -r <retaddr>]\n"
"\t-t <target> - IP of target\n"
"\t-p <port> - port where cupsd runs\n"
"\t-o <offset> - offset for retaddr ($retaddr + $offset)\n"
"\t-r <retaddr> - give exact retaddr\n", p);
exit(0);
Also, are you certain the version of cups on your target box is vulnerable?
Logged
~~~~~~~~~~~~~~
Ketchup
UNIX
Hero Member
Offline
Posts: 1234
Re: Basic Exploit Helo
«
Reply #6 on:
July 28, 2009, 12:31:34 AM »
As a side note I would like to recommend, to never run/ compile an third-party exploit without understanding what it actually does (even in a virtual machine this could cause damage to your host system).
If someone don't understand how to compile some piece of code and run it properly she should maybe go one step back and begin with something easier (e.g. learning programming in general).
This is not ment offensive.
Logged
impelse
Hero Member
Online
Posts: 565
Re: Basic Exploit Helo
«
Reply #7 on:
July 28, 2009, 10:12:32 AM »
I have the version CUPS 1.1 so has to work.
Awesec: it is true to learn moething easy but sometimes you get something that you want to try and you wonder how you can do it and this happend today, I am not worry to kill my lab I can build it back again. Fox ex. Ketchup told me that the file that I tried to work is a C code, so after that I went to my google friend and found out how to compile in C and works and also I tried others C exploits in my target.
I am learning a lot trying to brake this host and also I already added other skill to my list to learn that is C and pearl.
Logged
CCNA, Security+, 70-290, 70-291
CCNA Security
Taking Hackingdojo training
Website:
http://blog.thehost1.com/
UNIX
Hero Member
Offline
Posts: 1234
Re: Basic Exploit Helo
«
Reply #8 on:
July 29, 2009, 12:42:22 AM »
As I said it was not ment offensive and not addressed directly to you but should be an advice in general.
Do you get any (error) messages when launching the exploit? You could implement e.g. messageboxes to see how far the exploit gets.
Quote from: impelse on July 27, 2009, 03:15:48 PM
[...]
Do you crash some services to get access through another service, is that commond? I do not know if that works but I am trying
Depending on the circumstances it could be possible to get access through one service when crashing another one. But often the goal is not to crash anything as this would raise noise and suspicion.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(86) by
impelse
Tutorials
: Need guidance
(8) by
r0ckm4n
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
General Certification
: CPT Practical Submission
(0) by
z28power4u
Web Applications
: Nessus and Nikto
(4) by
Seen
Malware
: EICAR?
(2) by
SephStorm
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.