Difference between revisions of "CTF-practice-evening:2014-08-04"

From Technologia Incognita
Jump to: navigation, search
Line 22: Line 22:
 
* From running it, the program appears to be a daemon of some kind - a Socks proxy
 
* From running it, the program appears to be a daemon of some kind - a Socks proxy
 
** This is a proxy for TCP - we can look at the protocol details w/ Google
 
** This is a proxy for TCP - we can look at the protocol details w/ Google
** netstat -
+
** netstat -uplanet  (we can see which ports are used)
 
* What was added between Socks4 and Socks5?  (there might be a bug)
 
* What was added between Socks4 and Socks5?  (there might be a bug)
 
** Authentication and connecting directly to a domain
 
** Authentication and connecting directly to a domain
Line 32: Line 32:
 
* We want to find out what happens when you tell the program to read and send 255 bytes
 
* We want to find out what happens when you tell the program to read and send 255 bytes
 
** We want to establish a connection
 
** We want to establish a connection
 +
** We need to specify Socks5

Revision as of 18:58, 4 August 2014

CTF-practice-evening:2014-08-04
Date 2014/08/04
Time
Location ACTA
Type Workshop
Contact Melanie

Capture The Flag evening - Part 23

  • 4 August, 2014 - 7 PM
  • Please bring along a laptop with you!!!

General CTF Info

Binary Exploitation

  • Brainsmoke is talking about binary exploitation today
  • objdump -d: see the disassembly, sometimes you can see symbols
    • This example has mangled C++ symbols
  • From running it, the program appears to be a daemon of some kind - a Socks proxy
    • This is a proxy for TCP - we can look at the protocol details w/ Google
    • netstat -uplanet (we can see which ports are used)
  • What was added between Socks4 and Socks5? (there might be a bug)
    • Authentication and connecting directly to a domain
    • Most of the fields are fixed length
    • But the domain name is a string - it could have a buffer overflow
    • There's a 1 byte name length - if you use a 1 byte length, you might end up w/ a negative number
    • If you try to read a negative number, you will try to read a lot of bytes
  • We want to find out what happens when you tell the program to read and send 255 bytes
    • We want to establish a connection
    • We need to specify Socks5