Thứ Sáu, 10 tháng 8, 2012

NetCat - Công cụ hack đa chức năng

0 nhận xét
Netcat là một công cu không thể thiếu nếu bạn muốn hack một website nào đó.vì vậy bạn cần phải biết về Netcat. 
Netcat có thể chạy trên cả linux và window. Đối với NetCat cho Linux, bạn phải biên dịch trước khi sử dụng. Bản NetCat dành cho Window không cần phải compile vì đả có sẵn file nhị phân nc.exe, chỉ giải nén rồi chạy là xong.


 Tải về bản 0.7.1 : tại đây hoặc tại đây



Tải về các phiên bản khác: http://sourceforge.net/projects/netcat/files/netcat/
 
Trên Linux bạn cần biên dịch trước khi chạy:
-Hiệu chinh file netcat.c bằng vi: vi netcat.c
•Tìm dòng res_init(); trong main() và them vào trước 2 dấu “/”: // res_init();
•Them 2 dòng sau vào phần #define (nằm ở đầu file):
#define GAPING_SECURITY_HOLE
#define TELNET
-Biên dịch : make linux
-Chạy thử : ./nc –h
-Nếu bạn muốn chạy NetCat bằng nc thay cho ./nc , bạn chỉ cần hiệu chỉnh lại biến môi trường. PATH trong file ~/.bashrc, them vào “:.”
PATH=/sbin:/usr/sbin:...:.
 

Các tùy chọn của NetCat:

Netcat chạy ở chế độ dòng lệnh , bạn phải chạy nc –h để biết tham số:
C:>nc –h
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [options] [hostname] [port]
Options:
-d detach from console, stealth mode
-e prog inbound program to exec [dangerous!!]
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-l listen mode, for inbound connects
-L listen harder, re-listen on socket close
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-s addr local source address
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: m-n [inclusive]

Cú pháp :
- Chế dộ kết nối : nc [-tùy_chon] tên_máy cong[-cong2]
- Chế dộ lắng nghe: nc -1 -p cổng [-tùy_chon] [tên_máy] [cổng]
  

Bạn có thể xem thêm cách sử dụng Netcat tại đây: http://en.wikipedia.org/wiki/Netcat
 
0 nhận xét to" NetCat - Công cụ hack đa chức năng "

Leave a Reply

TheHackerNews

Labels

 
TheHackerNewsVN Blog © 2012