|
Penetration Testing
mailing list archives
Re: Connecting to different services with source port 53
From: Marco Ivaldi <raptor () 0xdeadbeef info>
Date: Mon, 4 Jul 2005 16:35:17 +0200 (CEST)
Hey,
Is there a way, how I can establish a connection using source port 53?
Actually, there are a lot of ways to accomplish this task: good old netcat
and iptables SNAT on POSTROUTING are only a couple of examples... You can
also take a look at proxed.c, a small TCP stream redirector/manipulator
written by awgn:
http://awgn.antifork.org/codes/proxed.c
root () voodoo:~# ./proxed -h
Usage: proxed [OPTION]...
SOCKET
-c int Set SO_RCVBUF size
-f int Set SO_SNDBUF size
-y int Set SO_RCVLOWAT size
-z int Set SO_RCVLOWAT size
-k Set SO_KEEPALIVE
-r Set SO_DONTROUTE
IP
-A Set TTL ramping assault
-T ttl Set IP_TTL
-O tos Set IP_TOS
TCP
-x int Set TCP_MAXSEG. Maximum segment size < MTU
-n Set TCP_NODELAY. Disable Nagle algorithm
-6 Use IPv6 addresses
-s [host|any][:.]port Source host and port to listen on
-d host:port Destination host and port to connect to
-b [host|any][:.]port Local host and port to bind
Common
-V Verbose; display verbose messages.
-Q N. max of clients; default 10.
-v Display version number.
-h Print this help
This network utility may also turn out to be (at least in part) useful to
Mr. Rajeev Kapoor, who asked for something like that 2-3 weeks ago on this
mailing list.
Cheers,
--
Marco Ivaldi
Antifork Research, Inc. http://0xdeadbeef.info/
3B05 C9C5 A2DE C3D7 4233 0394 EF85 2008 DBFD B707
By Date
By Thread
Current thread:
- Re: Connecting to different services with source port 53 Marco Ivaldi (Jul 04)
|