08.23.06

Connection Stress Tester

Posted in Python at 10:27 pm by Tyler Reguly

As many of you know I participate regularly on AntiOnline (an online IT/Security Community). Recently, someone was looking for a connection stress tester... There are many available.. Blast by Foundstone comes to mind. I decided that they needed something simpler, all they wanted to do was test the number of connections a server could handle. The result was a little script that I wrote up. It's fairly basic but it does the trick. I've added some basic error checking (let me know if you want specific errors caught) and a usage function and now I'm putting it here for all of you to download (should you desire to). You can download it from here. Let me know what you think and if you want to see any additions... or a tutorial on the subject.

Peace,
HT

05.01.06

Python and COM

Posted in Python at 12:40 am by Tyler Reguly

So I've ventured into Python and COM, using PythonWIN and win32com.client. So far it's been fairly basic stuff... I've been manipulating outlook and dumping emails in plain-text into a file... I thought that I'd like to share the script for this... so here it is... fairly basic... let me know what you think and what I can add... If anyone is interested in any of my Python scripts and would like me to write up explanations, don't hesitate to ask..

Download dumpInbox.py

Peace,
HT

04.30.06

gmail from the command prompt

Posted in Python at 3:10 am by Tyler Reguly

So over the past few weeks I've been playing around with gmail and python... and libgmail.

I've decided that more people should be introduced to this and the functionality of it, so I've created a small program to allow people to play around with it... It should run on any version of python, however, I've written it with Python 2.4 in mind and of course you'll require libgmail from the above link.

My script, checkgmail.py, provides the following functionality:

---Cut from help---
Usage: ./checkgmail.py

Options:
-a All messages
-r Only read messages
-u Only unread messages
-h Display this help message
Parameters:
-L

Only messages from a specific address
-R Read the messages (display message content)
-S Return the subject lines
-C Display a message count
-Q Run the specified query (search)
-N Number of messages to return (default: ALL)
-U GMail username
-P GMail Password (default: prompt)
---End Help---
The idea is that you can pass 1 option and multiple parameters. By default it should, and I say should because I haven't extensively tested this software, prompt for a username and a password, log in and parse all unread mail in your inbox... however it won't display any information.
Some examples you could use:
 
To check and see if your mom has sent you any mail and to check the subjects you could use this command:
checkgmail.py -u -F mom@hotmail.com -S

To read the last message your girlfriend sent you, you could run something like this
checkgmail.py -u -F gf@hotmail.com -R -N 1

One important thing to remember is that whenever you parse unread messages, even if you don't display them... libgmail is still marking them read... don't let this confuse you when you revisit gmail through your browser.

Download checkgmail.py

Peace,
HT

Next entries »