socket hangs on RECV. Sorry if I am not explaining this correctly.
Maybe someone can share with me some papers on writing Windows
sockets.
Thank you,
Tom Green.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http
Sweet nice tip I love this list. Thank you.
Mike
On Sat, Oct 24, 2009 at 7:40 PM, Dave Angel wrote:
> Tom Green wrote:
>
>> Thanks for your reply Dave. I am capturing the data off the network
>> (wireshark) and saving it in WinHex for testing. I am actually building a
&g
is a better way.
Mike
On Sat, Oct 24, 2009 at 4:43 PM, Dave Angel wrote:
> Tom Green wrote:
>
>> Alan,
>>
>> Thanks for your response and hopefully I can clear things up. I apologize
>> for not being more clear.
>>
>> I obtain the HEX encoded data
This is what I have so far,
import struct
EncryptString="313B372C2E2C63362E2128"
XorKey="41424344"
key = struct.unpack("d", XorKey)
num_ints = len(EncryptString)/11
data = struct.unpack("%dd"% num_ints,EncryptString)
The above code generates an error the my string must be a string length of
16
:
>
> "Tom Green" wrote
>
>
> wondering if there was someway in Python to indicate that the string is a
>> string of HEX values similar to Perl's pack.
>>
>
> You need to be very careful in your terminology here.
>
> Is it "a string of he
Hello everyone,
First, I wanted to thank everyone in advance for your help and any feedback
is appreciated. Here is what I am trying to accomplish:
I have this encrypted data that was sent across the network. The decryption
is a simple XOR with a 16 byte key. I started writing a basic Python s
Thanks I just happened to find the site myself. I guess I have to pass each
character to the function and build the 8-bit ASCII string or is there a
better way to do it?
On Tue, Jun 16, 2009 at 3:37 PM, Wayne wrote:
> On Tue, Jun 16, 2009 at 2:25 PM, Tom Green wrote:
>
>> Correct
Correct 8-bit ASCII. Sorry about that. I am using Python 2.5.2, which
doesn't support bin. If I upgraded how would I go about converting the
entire string to 8-bit ASCII?
I appreciate your help.
On Tue, Jun 16, 2009 at 3:05 PM, Lie Ryan wrote:
> xchime...@gmail.com wrote:
> > Thanks for th
This has been a great discussion and when I first entered college I was
required to take Pascal. At that time we used Turbo Pascal IDE--if you want
to call it an IDE. As with anything technology advances and we have new
tools for the job and I became spoiled once Visual Studio hit the market. I
Since VIM seems to be the editor of choice and I have been programming in
Python for many years using Pyscripter and Eclipse I was wondering how I
could transition away from the IDE world to VIM. My main issue is how do I
go about using VIM to debug my code? With Pyscripter and other IDES its as
For Windows check out PyScripter. Its IDE is similar to Borland Delphi and
I find it very easy to use. Whatever works for you would be "best" for
you. PyScripter is FREE and I would highly recommend it for people who are
new to Python or people with programming experience that are used to
progra
Thanks everyone for your replies. This reason for the long string is
sometimes I have to pass a 32 byte key (MD5 hash value) to the socket. The
data I am sending is the hex values i.e. 41=A. I believe the binascii will
work.
Mike
On Mon, May 4, 2009 at 7:52 PM, Alan Gauld wrote:
>
>
Thank you, I didn't realize it was that easy. I tried binascii before and I
thought it didn't work properly.
I appreciate it.
Mike.
On Mon, May 4, 2009 at 7:40 PM, Emile van Sebille wrote:
> On 5/4/2009 4:17 PM Tom Green said...
>
>> First, thanks in advance for any in
First, thanks in advance for any insight on how to assist in making me a
better Python programmer.
Here is my question. I work with a lot of sockets and most of them require
hex data. I am usually given a string of data to send to the socket.
Example:
"414243440d0a"
Is there a way in Python to
The Python app is on the Server side. Sorry, I don't mean to cause hassle
for anyone. I appreciate everyone's assistance.
I am trying to reproduce what Netcat does.
Thanks,
Mike
On Fri, Feb 6, 2009 at 9:19 PM, Kent Johnson wrote:
> On Fri, Feb 6, 2009 at 3:52 PM, Tom Green wro
Hello Python group,
I need some advice on a problem I am facing. Basically I have a binary that
sends out a reverse shell (CMD prompt). I have a listening Python socket
and I would like to know how I can redirect the CMD prompt to stdin, so I
can interact with the host that is sending the shell.
16 matches
Mail list logo