Friday, June 22, 2007
David Litchfield new Oracle book
I had been wanting to learn more about Oracle hacking and i would not say i am not really good in Oracle Security. I managed to setup a Oracle Database server and do some simple exploitation and auditing, however i know that for me to be good in that aspect, it would require to focus most of my time trying to exploit and learn the techniques to hacking the database. This past week, it had came to my attention that David Litchfield(Oracle Security Guru, google him up to find out more) had published a book called Oracle Hacker's Handbook. I highly recommend anyone who loves Oracle Security to purchase this book. Although i had not lay my hands on this book, it will soon be on my bookshelves.
Monday, June 18, 2007
Using ftp with CUTCP telnet
Check out CUTCP
"Telnet is a program used to interactively log in to a remote computer. CUTCP telnet is a program that runs on a PC and is used in CIRCA labs and elsewhere on campus to log in to remote computers. This program can also function as an ftp server when you are logged in to a remote host. This means that you can use the host's ftp client to connect back to yourself. Here's how you do it:
1) First use telnet to log in to the remote host.
2) Press Alt/T. This will generate an ftp command with the proper network address and start the ftp client program on the interactive host.
3) When it asks for a name, enter anything.
4) When it asks for a password, press Alt/W. This will provide a hidden password to authenticate the connection.
Remember that when you have completed this connection, your PC is an ftp server, and the interactive host is running an ftp client. To transfer a file from the interactive host to your PC, use the put command. To transfer a file from the PC to the interactive host, use the get command."
"Telnet is a program used to interactively log in to a remote computer. CUTCP telnet is a program that runs on a PC and is used in CIRCA labs and elsewhere on campus to log in to remote computers. This program can also function as an ftp server when you are logged in to a remote host. This means that you can use the host's ftp client to connect back to yourself. Here's how you do it:
1) First use telnet to log in to the remote host.
2) Press Alt/T. This will generate an ftp command with the proper network address and start the ftp client program on the interactive host.
3) When it asks for a name, enter anything.
4) When it asks for a password, press Alt/W. This will provide a hidden password to authenticate the connection.
Remember that when you have completed this connection, your PC is an ftp server, and the interactive host is running an ftp client. To transfer a file from the interactive host to your PC, use the put command. To transfer a file from the PC to the interactive host, use the get command."
Sunday, June 17, 2007
Regular Expressions with Cisco IOS
I was reaading some cisco stuffs today and i knew long ago that Cisco IOS allows regular expression for simplification of search task and other uses. Well, back then i did not research much on it but i just came across 2 sites which provides more explaination with regards to Cisco IOS regex.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ftersv_c/ftsappx/tcfaapre.htm
http://www.nil.com/ipcorner/EnhanceIOSUI/
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ftersv_c/ftsappx/tcfaapre.htm
http://www.nil.com/ipcorner/EnhanceIOSUI/
Saturday, June 16, 2007
Cisco Router's DNS server to kill browser advertisement
I just happen to stumble across ioshints blog. He mentioned something about the cisco router's dns server having a way to prevent unwanted website advertisement. You guys can read more at: http://www.nil.com/ipcorner/RouterDNS/
Hacking Old Skoolz Windows
Port 135 (client-server communications)
Port 139, 445 (authentication and file sharing)
Port 137,138 (NetBIOS browser, name and lookup functions)
Look for port 135 endpoint mapping which includes, Microsoft Outlook, Exchange and Messenger Service.
Nmap server to look for port 135
Run rpcscan or epdump on server over port tcp or udp port 135
If udp port 1028, 1029 opened or tcp port 1025 opened, run rpcscan over those ports
Look for IFID 12345778-1234-abcd-ef00-0123456789ab and 12345778-1234-abcd-ef00-0123456789ac for both LSA and SAMR interface respectively. Can be found on all Windows NT OS using name pipes accessible through SMB session over TCP port 139 or 445.
Run walksam query if SMAR interface is present to glean user information.
Run rpcclient from backtrack if a valid username and password is given. LSARPC interface must be present
Compromise admin password using brute force tool WMICracker.
Use Remoxec to execute arbitrary commands.
Verify if server is vulnerable for RPC DCOM exploits. If patch MS03-026 and MS03-039 is applied, nothing can be done. Else download exploits from
http://packetstormsecurity.org/0307-exploits/dcom.c
http://packetstormsecurity.org/0307-exploits/DComExpl_UnixWin32.zip
http://packetstormsecurity.org/0307-exploits/rpcdcom.101.zip
http://packetstormsecurity.org/0307-exploits/oc192-dcom.c
http://examples.oreilly.com/networksa/tools/dcom-exploits.zip
http://www.securityfocus.com/bid/8205/exploit/
DCOM interface can be exploited through:
TCP and UDP port 135 (through RPC server service)
TCP ports 139 and 445 (through SMB and named pipes)
TCP port 593 (through COM Internet Services, if installed)
Use kaHt2 to exploit a remote shell
Use SPKIE msrpcfuzz fuzzer to do stress test.
-----------------------------------------------------------------------------------------
NetBIOS Name Service UDP port 137
Dumping NetBIOS table: Nbtstat –A 192.168.1.152
Local Area Connection:
Node IpAddress: [192.168.1.20] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
CARAA <00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
CARAA <20> UNIQUE Registered
WORKGROUP <1E> GROUP Registered
MAC Address = 00-0D-88-CB-30-0B
------------------------------------------------
<00> unique hostname
<00> group domain name
<03> unique Messenger service running for that computer
Port 139, 445 (authentication and file sharing)
Port 137,138 (NetBIOS browser, name and lookup functions)
Look for port 135 endpoint mapping which includes, Microsoft Outlook, Exchange and Messenger Service.
Nmap server to look for port 135
Run rpcscan or epdump on server over port tcp or udp port 135
If udp port 1028, 1029 opened or tcp port 1025 opened, run rpcscan over those ports
Look for IFID 12345778-1234-abcd-ef00-0123456789ab and 12345778-1234-abcd-ef00-0123456789ac for both LSA and SAMR interface respectively. Can be found on all Windows NT OS using name pipes accessible through SMB session over TCP port 139 or 445.
Run walksam query if SMAR interface is present to glean user information.
Run rpcclient from backtrack if a valid username and password is given. LSARPC interface must be present
Compromise admin password using brute force tool WMICracker.
Use Remoxec to execute arbitrary commands.
Verify if server is vulnerable for RPC DCOM exploits. If patch MS03-026 and MS03-039 is applied, nothing can be done. Else download exploits from
http://packetstormsecurity.org/0307-exploits/dcom.c
http://packetstormsecurity.org/0307-exploits/DComExpl_UnixWin32.zip
http://packetstormsecurity.org/0307-exploits/rpcdcom.101.zip
http://packetstormsecurity.org/0307-exploits/oc192-dcom.c
http://examples.oreilly.com/networksa/tools/dcom-exploits.zip
http://www.securityfocus.com/bid/8205/exploit/
DCOM interface can be exploited through:
TCP and UDP port 135 (through RPC server service)
TCP ports 139 and 445 (through SMB and named pipes)
TCP port 593 (through COM Internet Services, if installed)
Use kaHt2 to exploit a remote shell
Use SPKIE msrpcfuzz fuzzer to do stress test.
-----------------------------------------------------------------------------------------
NetBIOS Name Service UDP port 137
Dumping NetBIOS table: Nbtstat –A 192.168.1.152
Local Area Connection:
Node IpAddress: [192.168.1.20] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
CARAA <00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
CARAA <20> UNIQUE Registered
WORKGROUP <1E> GROUP Registered
MAC Address = 00-0D-88-CB-30-0B
------------------------------------------------
<00> unique hostname
<00> group domain name
Wednesday, June 13, 2007
Cisco's PIX/ASA TCP flags syntax
Have you guys ever wondered how PIX or ASA firewall TCP 3 way handshake works? Well, its absolutely similiar to how the normal TCP/IP handshake works. Just a little different in terms of the syntax. For instance SYN flag in PIX is known as saA. For torubleshooting purposes, you would however need to know these flags in PIX/ASA. I had summarised a table of the flags and how it works.
Tuesday, June 12, 2007
PIX firewall troubleshooting commands
I am adding some commonly used PIX firewall troubleshooting commands. For those of you who does troubleshooting of the firewall, you know should familiar yourself with these commmands. Handy yet Powerful.
1. show xlate, show xlate detail - display NAT translations and its details
2. show connection, show connection detail - display connection details built in the firewall
3. show service-policy - display inspection policies
4. show local-host 192.168.1.1 - display translation, AAA, connection information
5. show asp drop - show number of packets dropped while processing the packets
6. show mem - display memory usage in the PIX
7. show cpu usage - display cpu usage over a time period
8. show traffic - display total traffic transmitted and received on each individual interfaces on the PIX
9. show block and show cpu usage can determine if the firewall is overloaded.
Of course there are many other things you would need to know like the debug commands, capture commands, show logging, show running logging, show logging setting commands. If you guys need to know more, just email me and i will guide you
1. show xlate, show xlate detail - display NAT translations and its details
2. show connection, show connection detail - display connection details built in the firewall
3. show service-policy - display inspection policies
4. show local-host 192.168.1.1 - display translation, AAA, connection information
5. show asp drop - show number of packets dropped while processing the packets
6. show mem - display memory usage in the PIX
7. show cpu usage - display cpu usage over a time period
8. show traffic - display total traffic transmitted and received on each individual interfaces on the PIX
9. show block and show cpu usage can determine if the firewall is overloaded.
Of course there are many other things you would need to know like the debug commands, capture commands, show logging, show running logging, show logging setting commands. If you guys need to know more, just email me and i will guide you
Friday, May 18, 2007
Page Rank at 4
Hi guys, its been really a long time since i update my blog. These days, i am just pure pure busy with ideas flowing around and trying to make my ideas happen. I am actually doing lotsa research and reading work and putting bits and pieces together once it is ready. I should be starting to code when i make a return trip back to dubai from singapore. Well, i was searching for page ranking of my blog, and to my surprise, just 2 months of blogging and commenting, i got a page rank of 4 which i am so happy. Its like i start from 0 to 4, and now, thats an achivement for me. Check out www.seochat.com. This hardwork and perseverance will be continued on my new project and i hope to make it a success. Till then, drop me an email if you guys want to know more about networking or just say hi and I will be happy. Peace.
Saturday, April 21, 2007
My Last Post on Security Stuffs
To all my dereast and loyal readers, i am sad to say that this might be the last post i make regarding network security or web security here. Why? Because i am off to something even more exciting and challenging. These 2 months of blogging had been really great with a vast amount of knowledge exchanged from the community. Its a short yet fruitful journey for me and thank you guys for all the support and emails you gave me. I can only say sorry here because i will not have the time to actually blog too much on security again. Instead something big and exciting is waiting ahead for me to accomplished. Nevertheless, you guys can still email me regarding security issues you have. I will try to response fast. Once again, thank you.
Wednesday, April 18, 2007
Windows Vista Forensics
I was reading articles and i happen to stumble a microsoft vista forensics article. In this article, Jamie Morris from Forensic Focus share his view on vista forensics and several new vista features. I think microsoft is really picking up on security these days compared to the past and their response to security incident is fast. Yes, you can agrue that vista is hacked and it is not secure, but still which softwre doesnt have bugs? Most importantly, they always release patches fast after certain exploits has been discovered and allowing end users like us to do update. Linux is powerful and has improved a lot over the years, but still i would prefer to use microsoft as my main OS and Linux as a VMWare image, why? Because i think Bill Gates is great. I give full support to this man 100%. Without Bill, you wont have a great OS like Windows for you to start your computer knowledge with. Well, this is just my point of view, but you can argue.
Subscribe to:
Posts (Atom)