Re: [Tutor] Find and test a device by MAC address

2007-01-04 Thread lumbricus
Quick and dirty: As root: >>> from scapy import * >>> arping("192.168.0.1/24") # or whatever fits to your network and then filter the answers; or build your own arp packets with ARP(). -- Freedom, Freedom, Freedom, Oi! -- Zoidberg Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu

Re: [Tutor] Proxy

2006-02-20 Thread lumbricus
I like this one: "http://home.wtal.de/stampa/httpMonitor/"; It provides an interface to set up your own Filters. So you can easily block/modify requests/responses. HTH, J"o! -- Freedom, Freedom, Freedom, Oi! -- Zoidberg Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Sat

Re: [Tutor] python-based system programming and admin?

2006-01-23 Thread lumbricus
> I just have to tell the user to ssh in and run 'ipython' to > get a familiar and flexible environment. Put a link on his Desktop which points to "ssh -X [EMAIL PROTECTED] ipython" man ssh > The system is a server - doesn't even need X libraries, which are a > significant source of security conc

Re: [Tutor] Importingf a List from Module

2005-08-28 Thread lumbricus
Hello! >>When I do this it prints out the entire "close" list, not just the first >>term. In your module: >for i in range(5): >print close[i] Here you tell it to do so. It does it when it gets imported. HTH and Greets, J"o! -- Wir sind jetzt ein Imperium und wir schaffen uns unsere eigen

Re: [Tutor] Exceptions and its error messages

2005-08-28 Thread lumbricus
Hello! Don't know if someone wrote this already. >But how knowing all error messages from some module? >Is there any way of knowing from python interactive line? >>> for i in dir(__builtins__): >>> if i.endswith("Error"): print i HTH and Greets, J"o! -- Wir sind jetzt ein Imperium und wi

Re: Fwd: [Tutor] Create list of IPs

2005-02-20 Thread lumbricus
> Liam Clarke wrote: [ snip ] > - increment an IP. This is the hardest part. Why? An ip (V4) is just an 32bit integer :-) The problem arises from the representation. Use something like "http://pynms.sourceforge.net/ipv4.html"; to switch between the various representations. > Kent HTH and Gree

RE: [Tutor] Are you allowed to shoot camels? [kinda OT]

2005-02-03 Thread lumbricus
> Alan, > > We'll just have to have to disagree about awk. I starting learning Perl > to avoid learning awk :-) But awk is smaller and simpler than perl. So it should be faster (esp. at startup) for small and simple tasks. As usual: Right tool for right task. > Jeff ___ Greetings, J

Re: [Tutor] Are you allowed to shoot camels? [kinda OT]

2005-02-02 Thread lumbricus
Hello! > Actually IIRC Perl *invented* regexes as we know them. The "standard" > regex syntax is known as "Perl regex syntax". Regex are way older than Perl. The roots are in the Fourties(!). They were first used in the editor qed, then ed, then sed and eventually grep. Then awk, emacs, v