Author |
Message |
AnubisProgrammer
|
Posted: Wed Apr 12, 2006 1:04 pm Post subject: Shutting Down |
|
|
I'm using the ExitWindowsEX(EWX_POWEROFF, NULL) command. Now, I've just recently started learning about that, so first off, I'm not sure if that command is correct. Second of all, it doesn't seem to work. I'm using a school computer, I'm not sure if that would affect it or not. Any thoughts on shutting a system down using a win32 Console APP on win xp? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mazer
|
Posted: Wed Apr 12, 2006 1:25 pm Post subject: (No subject) |
|
|
We usually don't help people try to abuse systems and cause trouble for others. Have you tried the program on your own computer? |
|
|
|
|
|
AnubisProgrammer
|
Posted: Wed Apr 12, 2006 1:31 pm Post subject: (No subject) |
|
|
It's not so much causing trouble for others. I plan on pursuing a career in computer security, so to do that I need to familiarize myself with various commands and functions that could be used in a malicious fashion. Anyways, I figured out what my problem was. Thanks anyways. |
|
|
|
|
|
wtd
|
Posted: Wed Apr 12, 2006 1:45 pm Post subject: (No subject) |
|
|
Inherent limitation in the Windows "console"? |
|
|
|
|
|
AnubisProgrammer
|
Posted: Wed Apr 12, 2006 9:48 pm Post subject: (No subject) |
|
|
I was missing part of the code that let me shut down on a multi-user platform. I just needed to add that in, as well as the NULL and it shut down. I was pretty happy when it finally worked. |
|
|
|
|
|
wtd
|
Posted: Wed Apr 12, 2006 10:03 pm Post subject: (No subject) |
|
|
Do you have to explicitly tell the function to execute with administrative privileges, or is it a matter of logging everyone else out first? |
|
|
|
|
|
md
|
Posted: Thu Apr 13, 2006 8:39 pm Post subject: (No subject) |
|
|
The function is probably tied to a specific user level; if your not an admin or system user then you probably can't call it. Windows secutiry is actually well thought out... just poorly implemented in practice. |
|
|
|
|
|
AnubisProgrammer
|
Posted: Fri Apr 14, 2006 5:00 pm Post subject: (No subject) |
|
|
Ya, there's a specific piece of code I have to add to be able to shut the system down. I'm using a student account with very limited access. You have to add this code any time there's more then one user on the system (or so I'm told). I have to take a better look at the code to see exactly what it's doing. I'll get back to you on that one. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Sanjay
|
|
|
|
|
Justin_
|
Posted: Sun Apr 30, 2006 4:23 pm Post subject: (No subject) |
|
|
Nice first post Sanjay, you are less mature than Annubis for that disgraceful post. Note that the post is 18 days ago?
For the love of God, don't join internet communities so you can talk smack. Talk smack in real life so you can get your teeth knocked out like you deserve. |
|
|
|
|
|
Sanjay
|
Posted: Sun Apr 30, 2006 4:44 pm Post subject: (No subject) |
|
|
Justin_ wrote: Nice first post Sanjay, you are less mature than Annubis for that disgraceful post. Note that the post is 18 days ago?
For the love of God, don't join internet communities so you can talk smack. Talk smack in real life so you can get your teeth knocked out like you deserve.
Ok, I admit that I was very vicious. Immature, no.
And I didn't notice that this thread is 18 days old, it was very near the top of the list of threads.
I didn't join this internet community so I could talk smack. In fact, that wasn't really talking smack. I was making two valid points.
#1: Hacking ethics are extremely compromised these days
#2: Google is your friend.
I managed to find the answer to his question by Googling "ExitWindowsEX(EWX_POWEROFF, NULL)".
Could he not have done that himself?
I do deserve to get my teeth knocked out, but not for anything that you know of. So back the fuck off trying to be a hardman.
It was nice to meet you too |
|
|
|
|
|
Sanjay
|
Posted: Sun Apr 30, 2006 4:47 pm Post subject: (No subject) |
|
|
Seeing as I can't edit posts, one more thing:
I am not going to get into a flame war with you over this. We clearly have very different views on the matter at hand and nothing I say is going to change what you think, and nothing you say is going to change what I think.
End of discussion? |
|
|
|
|
|
|