Re: sniffinf
- From: bsh <brian_hiles@xxxxxxxxxxxxxx>
- Date: Thu, 30 Apr 2009 13:02:37 -0700 (PDT)
On Apr 28, 7:45 am, franzi <hazz...@xxxxxxxxx> wrote:
Hi there to everybody,could you point me if there is a way to perform
a packet manipulation inside a default unix system by a shell
scripts?
i'm trying to use right now scapy but it's not a default software
via awk grep and what's so ever is there any chace?
"Default software", meaning preinstalled in the Unix default
distribution?
Since no one has answered in two days, I can contribute, that while
I have no experience with the scapy program, it is quite versatile
and sophisticated. In general principle, high-level shellscript (and
scripting in general) is a "glue" language best used to link other
lower-level software tools together.
While newer versions of ksh have a high-level interface to the
underlying OS'es TCP and UDP networking via the "> /dev/{tcp,udp}/
<IP#>/<port#>" pseudo-device (q.v. the manpage), this by no means
constitutes the interactive, multiple protocol, data packet forging/
decoding/sending/capturig/matching functionality of scapy.
I am aware of no script, sophisticated or not, that even approximates
the power of scapy. Two decades ago, there was an attempt to
translate uucp into Bourne shell, which failed, and I think the
situation is no better with newline-delimited-text oriented
input/output of the usual shells.
When greater control over networking is desired, the usual tools
(which are not distribution tools either, except for _maybe_ netcat)
used under command line control are:
"TCP_Wrappers."
ftp://ftp.porcupine.org/pub/security/index.html
"netpipes.c"
http://freshmeat.net/projects/netpipes/
http://www.cryptography.org/
"netcat.c"
http://netcat.sf.net/
.... and its many versions and clones....
http://farm9.com/content/Free_Tools/Cryptcat
"crryptcat = netcat + encryption"
http://www.l0pht.com/~weld/netcat/readme.html
More special purpose tools are available, e.g.:
"connect.c"
http://www.awk-scripting.de/download/connect-1.0.2.tar.gz
http://www.awk-scripting.de/download/connect-1.html
However, informally perusing scapy's Web site, I see
that there is a sufficient API for python programmers to
control scapy.
http://hackaholic.org/papers/blackmagic.txt
In my estimation, any binary I/O can be accomplished
with clever use of the enhanced "printf" of late-version
ksh93 shells, so theoretically, your desire can be
accomplished with shell control of scapy, if not a
standalone script itself.
=Brian
.
- Follow-Ups:
- Re: sniffinf
- From: franzi
- Re: sniffinf
- Prev by Date: Re: adding timestamps to an output stream
- Next by Date: Re: Computation of integers from two text files
- Previous by thread: Re: adding timestamps to an output stream
- Next by thread: Re: sniffinf
- Index(es):
Relevant Pages
|