Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Log Users out remotely

  • Please log in to reply
1 reply to this topic

#1 thekingpin3000


  • Members
  • 18 posts
  • Local time:10:03 PM

Posted 04 August 2010 - 10:17 PM


Is it possible to have a program that logs users out when it recieves a command from a computer on the same network?
Also is there anyway to insert a line of code into an existing exe to launch another exe?


BC AdBot (Login to Remove)


#2 housec


  • Members
  • 15 posts
  • Local time:04:03 AM

Posted 05 August 2010 - 05:05 AM


Look into invoking ExitWindowEx. Suggest having a service running on the machine (will need to run with escalated privileges), listening on some port. You'll need to open firewalls too.
Here is some inf
Alternatively you can call another process which would be shutdown.exe - goto a command line and type "shutdown /?" for more info.

Note you cannot use shutdown over the network to log someone off, it would have to be invoked via your service on the local machine. You could however cause a reboot of the machine remotely via shutdown. type shutdown /i for a gui.

If it's a shared machine (vm perhaps(?)) You'll find taskmanager can quite adequately do the job. Just look under the "users" tab.

"Also is there anyway to insert a line of code into an existing exe to launch another exe?"

Why would you want to do this...?
Very simple if you have the source code and can recompile the exe.

If you're after modifying the pre-built binary... well it is possible, though I can't see why you would want to do this except for something that is malicious? Certainly not an easy thing to do. Learning ASM would get you started thou. Reluctant to give more info about this.

A simpler way that would give you the same result, but be less "stealthy" and therefore not suitable for anything malicious would be to write a third binary (or script), that executes the first 2 binaries in the required order.

If you provide some more context to your particular problem, could perhaps advise better.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users