Jump to content


Photo

[DEV] scapy module for python2.6


  • Please log in to reply
3 replies to this topic

#1
Ponyta

Ponyta

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • Devices:HTC Desire
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, 18 September 2011 - 10:45 AM.

  • 0

#2
jdstrydom_xt550

jdstrydom_xt550

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:HTC Desire
Thanks. Will try

  • 0

#3
pilpoile

pilpoile

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:Samsung Galaxy S II
  • Twitter:@--
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

#4
Ponyta

Ponyta

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • Devices:HTC Desire
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users