관리자 권한 없이 TCP Relay가 가능한 유용한 툴이다.

socat TCP-LISTEN:9090,fork TCP:127.0.0.1:9999


※ 다운로드

http://www.dest-unreach.org/socat/


※ 컴파일 방법

extract the archive issuing the following command:

# tar zxvf socat-2.0.0-b5.tgz


cd into the socat source directory

# cd socat-2.0.0-b5


run the configure script:

# ./configure


run the make command to build the application

# make

10 errors generated.

make: *** [xio-ip6.o] Error 1



as you can see there are undeclared IPv6 identifiers. To solve this problem you have to add the following line at the beginning of xio-ip6.c:

 #define __APPLE_USE_RFC_2292


You can issue the following command or you can edit xio-ip6.c with your favorite editor:


# echo '#define __APPLE_USE_RFC_2292' > temp_file.c

# cat xio-ip6.c >> temp_file.c

# mv temp_file.c xio-ip6.c 

http://www.xappsoftware.com/wordpress/2013/10/10/how-to-run-socat-on-mac-os-x/  



 
Posted by n3015m
:
BLOG main image
'네오이즘'의 보안LAB 블로그입니다........... n3oism@gmail.com by n3015m

카테고리

분류 전체보기 (228)
[ HappyDevTool ] (29)
[ HappyToolRelease ] (4)
[Book] (6)
[ Security Studies ] (0)
- CII (2)
- BigData (2)
- Web Hacking (10)
- SQL Injection (25)
- Mobile Security (9)
- Network (6)
- OperatingSystem (4)
- Malware & Reversing (4)
- Phishing (5)
- Compliance (0)
- Programming (13)
- Tools (13)
- IoT (6)
- etc (21)
[Pentration Testing] (3)
[OS X] (4)
[ Security Trends ] (16)
[ Fixing Guideline ] (7)
My Way, My Life (34)
About Me (2)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :