September 21st, 2005, 01:02 PM
Wargame pulltheplug.org problem
I am currently trying to get past vortex level 00.. but I have a problem. http://www.pulltheplug.org/wargames/vortex/level00.html
Here is my code (in python):
Can anybody help me, please?
HOST = 'vortex.labs.pulltheplug.org'
PORT = 5842
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
b1 = s.recv(2)
b2 = s.recv(2)
b3 = s.recv(2)
b4 = s.recv(2)
b = b1+b2+b3+b4
ans = s.recv(1024)
if not ans: break
September 21st, 2005, 01:08 PM
Sorry for being harsh but i suggest you should work on it instead of
asking for help this way, you can learn better if you work on it.
September 21st, 2005, 01:11 PM
But its possible to take this "challenge" in python, or?
September 21st, 2005, 02:17 PM
Yeah, I'm sure you can do it in Python. Just keep working at it, I'm sure you'll get it.
/* You are not expected to understand this. */
September 21st, 2005, 03:53 PM
When I read in from port 5842 I get 16 bytes. There are supposed to be 4 unsigned ints, so every unsigned int have 4 bytes.
But every unsigned int normally have only 2 bytes, or?
Here are 4 example bytes:
20 225 63 39
So, how can I make an unsigned int of these 4 bytes?
Thanks for every hint you can give me...
September 21st, 2005, 04:52 PM
2 bytes is a short int.
\"If computers are to become smart enough to design their own successors, initiating a process that will lead to God-like omniscience after a number of ever swifter passages from one generation of computers to the next, someone is going to have to write the software that gets the process going, and humans have given absolutely no evidence of being able to write such software.\" -Jaron Lanier
September 22nd, 2005, 04:52 AM
Also don't forget the byte order
September 23rd, 2005, 12:18 PM
My problem is that I cant calculate the original unsigned int of these 4 bytes... I have searched google for an hour but that didnt get me further....
Can anyone please explain me the way to make an unsigned int of these 4 bytes?
September 23rd, 2005, 01:19 PM
You're trying to learn how to hack but you don't know that 4 bytes is an integer?!?!? Signed or unsigned is a matter of interpretation.. The thing to watch out for is little or big endian.. I'll leave it up to you to find the difference between them
Experience is something you don't get until just after you need it.
September 23rd, 2005, 02:08 PM
]jk[, let me give you an advice: ask yourself what is your goal?
Do you want to pass level 0 "to pass level 0", "to learn
basic networking and byte representation of data" or
"to learn how to gather information"? Or even something else?
If you just want to pass, a few people here could give you the
solution immediately, however, you will be lost at level 1 again.
If you want to learn about basic networking and byte representation,
that's great. You already now the basic networking part, so
let me give you a reader, which should help you to solve the
problem: learn, how an integer is represented in the memory,
and why people here are talking about the "order". Learn,
what "memory" actually is.
In my opinion, the highest achievement you can make during
this wargame is to learn how to gather information by yourself -
independently. Analyse what you know, what you will have to
know, and learn. This is not simple, but the more you practise
it, the better you become. This wargame starts simple, so use
If the only tool you have is a hammer, you tend to see every problem as a nail.
(Abraham Maslow, Psychologist, 1908-70)