Self-Improvement

Proxychains 설정 및 실습 (IP 우회) 본문

Kali Linux/Tools 실습

Proxychains 설정 및 실습 (IP 우회)

JoGeun 2018. 10. 20. 14:02

*Proxychains
 일반 web proxy : 웹 브라우저에서 웹 proxy 지정하여 인터넷을 한다. (명령어제한이 많음)



 
proxychains(=tor) : 웹 브라우저 뿐만 아니라 일반 명령어도 proxy 지정하여 스캐닝 작업을 할 수 있다.




*Proxychains 실습
 (kali)
 #apt-get update
 #dpkg -l "*proxychain*" (=redhat의 #rpm -qa)



 ※kali는 미리 설치 되어있음
 #apt-cache search proxychains (버전 search)
 #apt-get -y install proxychains libproxychains3 (3버전에 대해서 업데이트)
 #apt -get -y install tor 
 #service tor start
 
           Debian 계열 (8.x 이상)  Redhat 계열 (6.x 이상)
            --------------------------------------------------------
 (현재) # systemctl restart tor         # systemctl restart tor
 (부팅) # systemctl enable tor          # systemctl enable tor

 #service tor status



 #netstat -an | grep 9050 (tor의 포트번호)
 #vi /etc/proxychains.conf (주 설정 파일)




 기본 프록시 서버를 사용해도 무방하고 추가하고 싶다면 http://proxylist.hidemyass.com/, https://www.free-proxy-list.net/에서 서버를 설정파일 #add proxy here....다음에 넣는다.

 #nslookup www.soldesk.com (솔데스크의 IP를 확인)
 #proxychains nmap -sT -Pn -p 80 183.111.174.9 (외국 프록시서버를 통해 스캔)



*Proxychains 확인
 (GUI)
 #firefox  http://www.dnsleaktest.com
  =본인의 현재 IP를 보여주는 홈페이지



 #proxychains firefox http://www.dnsleaktest.com
  =프록시체인의 서버를 사용함으로 외국서버의 IP가 나옴




 (TUI)
 #wget http://ipinfo.io/ip -q (파일형식으로 제공)
 #cat ip






*Proxychains 구성 방법 종류
 #vi /etc/proxychains.conf에서 확인




 1.Strict Chain (Default)
 프록시서버의 목록을 사용하며 중간에 Error시 Close됨

 2.Dynamic Chain
 프록시서버의 목록에서 사용하며 중간에 Error시 다른 서버로 연결

 3.Random Chain
 프록시서버을 목록을 랜덤으로 

 
※외국IP에 대해 차단되는 경우가 있으며 이때 해당 국가의 VPN서버에 접속하여 접근 가능하다 (=해외에서 인터넷접속)
 ※http://nukestorm.tistory.com
/28