Need Help with base64

2007-07-23 Thread pycraze
Hi , I am currently trying to implement base64 encoding and decoding scheme in C . Python has a module , base64 , that will do the encoding and decoding with ease . I am aware of OpenSSL having support for base64 encoding and decoding , but i will have to now implement both in C without using t

Python C Embedded ! Attribute Error

2007-07-20 Thread pycraze
Hi , I am using the below C code so that i can embed a Python Code and get input from a python function and use it in C code . Below is the C Code #include int main(int argc, char *argv[]) { PyObject *pName, *pModule, *pDict, *pFunc; PyObject *pArgs, *pValue; int i; if

NTLM APS python version 0.98

2007-07-20 Thread pycraze
Hi , I am working on NTLM (Windows NT Lan Manager )APS (Authentication Proxy Server ) , to port to C language . I am using ethereal to monitor the packets sent between client and server . NTLM is a MS proprietary protocol designed so that will allow authentication only from MS browsers .

Need Help

2007-07-20 Thread pycraze
Hi , I am currently working on NTLM (Windows NT Lan Manager) APS (Authentication Proxy Server ) . NTLM is MS own proprietary protocol that will allow successful authentication for only MS browsers . NTLM APS was successfully cracked by Rosmanov and i am working on NTLM APS python pac

Need Help

2007-07-20 Thread pycraze
Hi , I am currently working on NTLM (Windows NT Lan Manager) APS (Authentication Proxy Server ) . NTLM is MS own proprietary protocol that will allow successful authentication for only MS browsers . NTLM APS was successfully cracked by Rosmanov and i am working on NTLM APS python pac

Need Help

2007-07-10 Thread pycraze
Hi , I need some info about the following snippet . --- protocol = 'NTLMSSP\000'#name type = '\001\000' #type 1 zeros1 = '\000\000' zeros2 = '\000\000\000\000\000\000\000\000\000' zeros3 = '\000

Segmentation Fault

2006-08-27 Thread pycraze
I would like to ask a question. How do one handle the exception due to Segmentation fault due to Python ? Our bit operations and arithmetic manipulations are written in C and to some of our testcases we experiance Segmentation fault from the python libraries. If i know how to handle the exception

Apache with Python 2.4 Need Help !!!

2006-01-25 Thread pycraze
Hi, I am currently using Fedora Core - 3 with apache 2.0 Web Server and Python 2.4 . I have numerous dependencies when i want to use Python 2.4 version with Apache 2.0 Web Server . I have installed the mod-python module , for apache , which is one of the package i got while installing Fedor

Re: why is my hash being weird??

2006-01-19 Thread pycraze
Surely adopting the above method is much better than what i have approached earlier . The main reason i did adopt this exercise was when i have to marshal a 20 - 40 MB above test.py file to the disk , the simple load of the test.py will sky rocket my virtual memory consumption. I was bit tro

Re: why is my hash being weird??

2006-01-19 Thread pycraze
You are appending to the test file. How many times have you appended to it? Once? Twice? A dozen times? Just what is in the file test.py after all this time? > when input =4 > ./s 4 >test.py > >test.py is > myhash = {} > def summa(): >global myhash >myhash[0] = 0

why is my hash being weird??

2006-01-18 Thread pycraze
Hi , I am using Fedora Core -3 and my Python version is 2.4 . kernel version - 2.6.9-1.667smp There is some freakish thing that happens with python hashes when i run a python script my python file is basically : myhash = {} def summa(): global myhash

Need Help with Python/C API

2006-01-18 Thread pycraze
Hi guys, I Need to know how do i create a dictionary... eg: n = pali_hash n={} n={1:{ } } -> i need to know how to make a key of a dictionary, to a dictionary using Python/C API's Pls do help -- http://mail.python.org/mailman/listinfo/python-list