Results 1 to 2 of 2

Thread: Can't get TCPreplay to run

  1. #1
    Just burned his ISO
    Join Date
    May 2009

    Default Can't get TCPreplay to run

    Hi, I'm using 'BackTrack 5 R1 GNOME' in a virtual machine. Should TCPreplay work out the box?

    I can find it in the menu, but when I try to run it I get:

    The program 'tcpreplay' is currently not installed. You can install it by typing:
    apt-get install tcpreplay
    You will have to enable the component called 'universe'

    If I try to 'apt-get install tcpreplay' I get:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    tcpreplay is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    I'm not great with linux so I'm a little confused. Dunno if this something trivial, any help would be great.

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Behind the screen.

    Default Re: Can't get TCPreplay to run

    Direct Wiki Quote:

    Sorry, the simple answer to that is no.

    BackTrack is a highly specialized distro, where a lot of normal tasks are not done automatically for you as they are in a mainstream distro.

    Our best advice if you wish to start off using linux with BackTrack as your first linux operating system, is don't.

    Start off by downloading a copy of Kubuntu (as it is a similar base operating system to BackTrack) boot into that and force yourself to do everything you are used to doing on a daily basis using that, preferably spending most of your time using the command line tools. When and only when you can perform all of those daily tasks without having to look-up the commands should you move to BackTrack.

    Please don't take this as us saying you shouldn't use BackTrack, take it as friendly advice that you are letting yourself in for a whole world of pain and frustration if you are not fully comfortable performing administration of your own linux machine before you start with Backtrack.
    Saying that ...

    root@bt:~# find /pentest/ -name tcprep*
    root@bt:/pentest/sniffers/tcpreplay# ./tcpreplay -h
    tcpreplay (tcpreplay) - Replay network traffic stored in pcap files
    USAGE: tcpreplay [ -<flag> [<val>] | --<name>[{=| }<val>] ]... <pcap_file(s)>

    -q, --quiet Quiet mode
    -T, --timer=str Select packet timing mode: select, ioport, rdtsc, gtod, nano, abstime
    --sleep-accel=num Reduce the amount of time to sleep by specified usec
    --rdtsc-clicks=num Specify the RDTSC clicks/usec
    -v, --verbose Print decoded packets via tcpdump to STDOUT
    -A, --decode=str Arguments passed to tcpdump decoder
    -K, --enable-file-cache Enable caching of packets to internal memory
    --preload-pcap Preloads packets into RAM before sending
    -c, --cachefile=str Split traffic via a tcpprep cache file
    -i, --intf1=str Server/primary traffic output interface
    -I, --intf2=str Client/secondary traffic output interface
    --listnics List available network interfaces and exit
    -l, --loop=num Loop through the capture file X times
    --pktlen Override the snaplen and use the actual packet len
    -L, --limit=num Limit the number of packets to send
    -x, --multiplier=str Modify replay speed to a given multiple
    -p, --pps=num Replay packets at a given packets/sec
    -M, --mbps=str Replay packets at a given Mbps
    -t, --topspeed Replay packets as fast as possible
    -o, --oneatatime Replay one packet at a time for each user input
    --pps-multi=num Number of packets to send for each time interval
    -P, --pid Print the PID of tcpreplay at startup
    --stats=num Print statistics every X seconds
    -V, --version Print version information
    -h, --less-help Display less usage information and exit
    -H, --help Display usage information and exit
    -!, --more-help Extended usage information passed thru pager
    --save-opts[=arg] Save the option state to a config file
    --load-opts=str Load options from a config file

    Options are specified by doubled hyphens and their name
    or by a single hyphen and the flag character.

    tcpreplay is a tool for replaying network traffic from files saved with
    tcpdump or other tools which write pcap(3) files.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

Similar Threads

  1. Tcpreplay error
    By siriusyen4 in forum BackTrack 5 Bugs
    Replies: 2
    Last Post: 05-20-2011, 01:21 AM
  2. fragrouter/tcpreplay
    By merderah in forum OLD BackTrack 3 Final
    Replies: 6
    Last Post: 09-13-2008, 06:39 AM
  3. TcpReplay error
    By level in forum OLD BT3beta Bugs and Fixes
    Replies: 6
    Last Post: 04-23-2008, 11:28 PM
  4. Tcpreplay problem.
    By c8sdd in forum OLD Newbie Area
    Replies: 3
    Last Post: 03-14-2008, 01:26 PM
  5. Last resort with tcpreplay
    By castlecrazy in forum OLD Newbie Area
    Replies: 8
    Last Post: 10-30-2007, 06:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts