Jump to content
Hak5 Forums
Stevko

possible to run tcpreplay ?

Recommended Posts

I would like to use the packet squirrel to capture and replay network traffic (for a couple of burning man art installations).

The former is supported by tcpdump.

Can it also do tcpreplay?

 

Share this post


Link to post
Share on other sites

To be a little more specific about the application - I would like to capture and replay UDP packets containing art-net protocol datagrams destined for lighting controllers like the pixlite. Most likely only need to alter the timestamp. This would allow us to record light shows and replay them as backup for a high powered controller laptop.

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi there,

You can absolutely run tcpreplay on the Squirrel. Simply give it an internet connection, SSH in, and run "opkg update && opkg install tcpreplay".

Share this post


Link to post
Share on other sites

Thanks for the opkg cli tip.  I may need a bit more help.

I have been trying to install tcpreplay but have not had any success.

The default chaos_calmer/15.05 package set does not contain tcpreplay.  https://archive.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/

 

I did manage to find tcpreplay-all in snapshots https://archive.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/

After fetching and opkg install'ing all 6 dependencies, I find the binaries at /usr/bin/... but trying to execute them results in a error message.

Quote

 

root@squirrel:/usr/bin# tcpreplay

-ash: tcpreplay: not found

root@squirrel:/usr/bin# tcprewrite

-ash: tcprewrite: not found

root@squirrel:/usr/bin# opkg info tcpreplay

Package: tcpreplay

Version: 4.2.5-1

Depends: libc, librt, libpcap

Status: install user installed

Architecture: ar71xx

Installed-Time: 1530920071

Am i missing some kind of install flag?

Is there a source for compatible binaries?

-- TIA

Share this post


Link to post
Share on other sites

Hello, can you post a result returned by the following command: 

ls /bin/{tcpreplay,usr/tcpreplay}

Best regards,

Ben.

Share this post


Link to post
Share on other sites

Thanks for the reply Ben. I'm new to this community but have been watching Snubbs on DTNS and Twit forever.

The result from that command is No such file or directory

Quote

 

root@squirrel:/# ls /bin/{tcpreplay,usr/tcpreplay}

ls: /bin/{tcpreplay,usr/tcpreplay}: No such file or directory

 

The package manager installed the binaries into /usr/bin

Quote

 

root@squirrel:/# ls -lat /usr/bin/tcpreplay

-rwxr-xr-x    1 root     root        114640 Nov  4 21:15 /usr/bin/tcpreplay

root@squirrel:/# ls /usr/bin/tcp*

/usr/bin/tcpbridge       /usr/bin/tcpprep         /usr/bin/tcprewrite

/usr/bin/tcpcapinfo      /usr/bin/tcpreplay

/usr/bin/tcpliveplay     /usr/bin/tcpreplay-edit

root@squirrel:/# 

 

While trying to execute these binaries - I added sym links from /bin/tcpxxx to /usr/bin/tcpxxx but no combination will launch the program (although shell auto complete works).

Quote

 

root@squirrel:/# /bin/tcpreplay

-ash: /bin/tcpreplay: not found

root@squirrel:/# /usr/bin/tcpreplay

-ash: /usr/bin/tcpreplay: not found

root@squirrel:/# /usr/bin/tcpreplay-edit 

-ash: /usr/bin/tcpreplay-edit: not found

 

 

Share this post


Link to post
Share on other sites

sorry but no,  tried that and most every variation.

Not knowing why it won't execute, I'm thinking of cleaning out all the local changes, altering the opkg config to include SNAPSHOTs and reinstall.

Perhaps some kind of dependency is missing or a corrupted binary...

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×