Author Topic: Python script to control WiFi/network  (Read 6257 times)

0 Members and 4 Guests are viewing this topic.

Offline madskillsmonk

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
Python script to control WiFi/network
« on: December 14, 2012, 03:59:46 am »
Hey guys, I'm new to Evilzone, so bare with me. I'm a fairly decent python programmer and I'd like to improve my python skills.  So I'm looking to create a program that can search/connect/disconnect and do lots of other things with my computers WiFi connection. (I'd really like to be able to crash the network and other fun stuff like that) so if anyone has some advice on how I should get started, any library's that could help, or snippets of code, that would be greatly appreciated.
Thanks in advance :)


Offline frog

  • Knight
  • **
  • Posts: 232
  • Cookies: 16
    • View Profile
Re: Python script to control WiFi/network
« Reply #2 on: December 16, 2012, 01:22:54 am »
I would explore the standard libraries more(Python Cookbook or documentation on site is great for this) to see what other stuff Python can do out of the box(e.g. Create mail client with a GUI using tkinter and send/receive email using poplib and smtplib). For what you are trying to do(control standard wireless protocols), you need a python 802.11 library and some guidance. In these two links is what you seek..

The 802.11 frame injection library: http://code.google.com/p/pylorcon/
The whitepaper from SANS: http://www.sans.org/reading_room/whitepapers/wireless/programming-wireless-security_32813

It sounds like you already have some experience with Python so I would jump right in and work with example code as much as possible. Without reference code it takes a lot longer to do things so re-use code as much as possible from examples that already 'work'.

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Python script to control WiFi/network
« Reply #3 on: December 16, 2012, 01:27:35 am »
RedBullAddict for the win. He demonstrates what could be done with Python. Learn sockets, scapy, impacket, pcappy, if network is what your after. Consult le RBA if you need/want to know networking shite, anything else including python stuff we can handle it. There are more than a couple python people here.
>>>import this
-----------------------------