Jump to content

[DEV] scapy module for python2.6


Guest Ponyta

Recommended Posts

Hi all,

At first: sorry for my English, I am from Czech rep. :P

I am successfully ported scapy module for python, runs great :lol:

requirements:

1) sl4a with python 2.6 interpret

2) pyconfig.h - just copy a source code and paste to new file named pyconfig.h

3) Makefile - same operation as pyconfig.h

4) Scapy module (.zip)

5) rooted device

installation:

1) follow these tutorial on xda link (you need to run install.py script with "install" parameter).

2) copy Makefile to "/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/config/" if missing folders, create it

3) copy pyconfig.h to "/data/data/com.googlecode.pythonforandroid/files/python/include/python2.6/" if missing folders, create it

4) unzip all files from downloaded scapy archive and copy to "/sdcard/sl4a/scripts/"

5) edit last line to: /data/data/com.googlecode.pythonforandroid/files/python/bin/python "/sdcard/sl4a/scripts/setup.py" install

Thats all. Tested with my HTC Desire (leedroid, 2.2 Froyo)

Edited by Ponyta
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
Guest pilpoile

Dears Ponyta,

It's a very nice job, it's working very well on Samsung galaxy S II !!!

Just one point :

5) edit last line to: /data/data/com.googlecode.pythonforandroid/files/python/bin/python "/sdcard/sl4a/scripts/setup.py" install

If you follow step one you can write

py "/sdcard/sl4a/scripts/setup.py" install

Thank's you very much !!

Can you tell me why you use scapy on your phone ?

Link to comment
Share on other sites

to pilpoile: Experiments, especially experiments, but nothing major..

For example I write in PyScapy equivalent of GNU Driftnet (capturing pictures from TCP flow) originally for GNU/linux, because original is not supporting monitor mode, otherwise on phone monitor mode is not available, at least it was more fun :)

Call of Duty 2 DoS script, which adds fake players to game server

Some experimental scripts for arp / cookies spoofing...

Of course, this module is more or less useless on phone, but for someone can be good fun, mainly if you often boring in some public places :D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.