Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5--Installing osniffer! #7

Open
cooljiansir opened this issue Nov 21, 2014 · 6 comments
Open

5--Installing osniffer! #7

cooljiansir opened this issue Nov 21, 2014 · 6 comments

Comments

@cooljiansir
Copy link
Owner

#5--Installing osniffer!

1 make the FIrmware and SDK

!!! attention : select libpcap NOT libcap

cd /home/workplace/
cd WRTnodeSDK140824/
make menuconfig
#[*] Build the OpenWrt SDK
# Libraries  ---> <*> libpcap............ Low-level packet capture library  --->
make 

2 Flush our Firmware

  • connect to wrtnode via wifi
  • visit 192.168.8.1
  • login
  • System -->Backup/Flash Firmware
  • Flash new firmware image --choose the /workplace/WRTnodeSDK140824/bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
  • Flash image
  • Flash Firmware - Verify --> Proceed
  • Wait for about 5 minutes

3 Compile for ipk

cd /workplace/WRTnodeSDK140824/bin/ramips/
tar -xf OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
cd OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package
git clone -b master --single-branch https://github.com/cooljiansir/osniffer.git
cd ..
make
cd bin/ramips/packages 
scp OpenWrtSniffer_1_ramips_24kec.ipk root@192.168.8.1:/usr/bin/
ssh root@192.168.8.1
cd /usr/bin
opkg install OpenWrtSniffer_1_ramips_24kec.ipk 

4 Copy the web files

git clone -b web2 --single-branch https://github.com/cooljiansir/osniffer.git
cd osniffer
scp -r * root@192.168.8.1:/webroot/
ssh root@192.168.8.1
vi /etc/config/uhttpd 
#check if there are lines:,if not add them
config uhttpd web
        list listen_http 0.0.0.0:81
        option home /webroot/
/etc/init.d/uhttpd restart

Now visit 192.168.8.1:81 !

  • Capture --> Interfaces....
  • select any
  • Capture --> Capture Filters
  • enter 'arp ' in the first input there is a blank after arp
  • click set
  • Capture --> Go
  • click start
  • visit 192.168.8.12 and there are arp packets captured
@cooljiansir
Copy link
Owner Author

The problem....em....I've also met it before.
/webroot/cgi-bin/snifferd doesn't start ,see '7b1d064'

It's a bug when first time visit 192.168.8.1:81 and no packets before,I've fixed it 082acf9

Solution : Just use the clone master0.1 and web0.1

I feel sorry about that,the master0.1 branch and web0.1 branch is the release version 0.1,and it's OK

@J1nwenWang
Copy link
Collaborator

When I install the osniffer I find I can use start in the go only once.There is no response when I click it the second time after click the stop.And I cannot visit the 192.168.8.12.

@cooljiansir
Copy link
Owner Author

The aim of visiting 192.168.8.12 is to make arp packets. 192.168.12 is not accessible.

@J1nwenWang
Copy link
Collaborator

I get it,what will we do the next step?Is there any development documents?

@cooljiansir
Copy link
Owner Author

Nice,I'll explain how the app works later,and discuss our plans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@cooljiansir @J1nwenWang and others