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 48 guests and 1 member online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
CEH - Certified Ethical Hacker
Null sessions in XP
EH-Net
May 20, 2013, 12:55:16 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
>
Network Pen Testing
>
CEH - Certified Ethical Hacker
(Moderator:
don
) >
Null sessions in XP
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Null sessions in XP (Read 4932 times)
0 Members and 1 Guest are viewing this topic.
Superman859
Newbie
Offline
Posts: 5
Null sessions in XP
«
on:
December 15, 2010, 05:11:41 PM »
I'm studying for the CEH and working through some exercises on null sessions. I'm not sure how useful they are in real life now since it seems XP sp3 and any newer systems seem to have fixed the issue, but I suppose there could be older machines...
Anyways, I have an unpatched XP with no service pack running as a virtual machine and another running XPsp3 where I test from.
I didnt have an any trouble setting up a null session as it told me it was set up successfully. However, it did take some work to get user2sid to work remotely...it always told me the user did not exist, even though the previous step set up the null session and ports 137 and 445 were both open. It did seem to work once I put both machines in the same workgroup.
However, I then tried dumpsec to get an enumerated list, but I haven't been able to get that to work. I set up the null session as before and can use the net use command and user2sid remotely, but after connecting to the same machine in dumpsec it fails to retrieve a list of users...am i doing something wrong? Is dumpsec broken for XP? I tried to find some other enum tools that were mentioned in my book, but I cant even find any to download. The one enum.exe download i found was corrupted, tried searching for 4getacct as mentioned in my book, but the only thing pulled up by google wwas references to the chapter from the book I'm reading.
I also checked the registry settings, which were still the defaults. Restrictanom was set to 0 and restrictanomsam was set to 1. Tried changing this to 0 as well to see if that would fix the issue with dumpsec but still no luck...
So...anyone have any ideas? Is it worth the trouble to even try to get this to work? Can i still use this in real life or just need to know the idea for the CEH?
Logged
network+, security+
ziggy_567
Sr. Member
Offline
Posts: 361
Re: Null sessions in XP
«
Reply #1 on:
December 16, 2010, 10:34:03 AM »
I use enum4linux all the time. It works against all versions of Windows provided they allow null sessions.
http://labs.portcullis.co.uk/application/enum4linux/
Logged
--
Ziggy
eCPPT - GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
H1t M0nk3y
Hero Member
Offline
Posts: 864
Re: Null sessions in XP
«
Reply #2 on:
December 16, 2010, 11:10:14 AM »
Welcome Superman859 to the forum!
Based on what you wrote, you know more than you need to pass the C|EH exam. This exam focuses more on which tools can be used to exploit a NULL session vulnerability and how can you check if there is a NULL session in the first place.
Although knowledge is always good, I think you are going too far for this exam...
Logged
OSCP, GPEN, GWAPT, GSEC, CEH, CISSP
Superman859
Newbie
Offline
Posts: 5
Re: Null sessions in XP
«
Reply #3 on:
December 16, 2010, 02:42:02 PM »
@h1t M0nk3y : You're right. I probably do know enough to pass the C|EH considering the format it's in and things of that nature. But I don't intend to stop at the C|EH and want to learn along the way as it will help me in the real world as well as preparation for more challenging exams in the future. Might as well learn it right the first time!
@ziggy : I downloaded enum4linux and seems it could be pretty handy and straightforward to use. Unfortunately I'm having the same issue with it that I had using Dumpsec. I can't enumerate information even though it seems like it connects fine using IPC$.
With enum4linux running enum4linux.pl -a targetIP I see it successfully gets:
domain/workgroup name (workgroup in this case)
nbstat information
server allows sessions using username '' password ''
domain sid (NULL SID) cant determine if host is part of domain or workgroup
gets some OS information
But now we start having issues:
users on targetIP:
couldnt find users using querydispinfo or enumdomusers NT_STATUS_ACCESS_DENIED
share enumeration:
share enumeration works (gets shares, including IPC$ and a test one I created), but
session request to targetIP failed (called name not present)
attempting to map shares fails resulting in denied for all shares EXCEPT
targetIP/IPC$ mapping: OK Listing: Denied
And then later on,
couldnt get RID: NT_STATUS_ACCESS_DENIED. RID cycling not possible
And that's basically it. So again, seems to be the same issue. Can connect to IPC$ but can't really get much information.
Double checked settings on targetIP...both restrictanonymous and restrictanonymoussam are currently set to 0. Windows Firewall is off altogether...
Logged
network+, security+
tturner
Sr. Member
Offline
Posts: 432
Re: Null sessions in XP
«
Reply #4 on:
December 16, 2010, 04:09:13 PM »
Check Network access: Allow anonymous SID/name translation
http://technet.microsoft.com/en-us/library/cc728431%28WS.10%29.aspx
Even when Network access: Do not allow anonymous enumeration of SAM accounts (and shares) is enabled you can still use sid2user and user2sid as it uses a separate api to pull that information and will still work if that SID/name translation is set to 1.
You could automate this with a FOR loop for all the user accounts starting with RID 1000 and going to 1050. Admin accounts start at 500 so just modify the script accordingly
Code:
for /L %i IN (1000,1,1050) DO sid2user \\targetpc "machine sid space delimited" %i >> users.txt
«
Last Edit: December 16, 2010, 04:19:14 PM by tturner
»
Logged
Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP
WIP: OSWP, GSSP-JAVA, GXPN
Udacity on hold, again. I suck.
http://sentinel24.com/blog
@tonylturner
http://bsidesorlando.org
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.