Sign in to follow this  
Followers 0
Ponyta

[DEV] scapy module for python2.6

4 posts in this topic

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
0

Share this post


Link to post
Share on other sites

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 ?

0

Share this post


Link to post
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

0

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
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.