forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ADMIN$ Share / RPC Service Interface
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Sep 22, 2002 12:18 am    Post subject: Reply with quote

Although I'm not sure yet how that utility exactly works, I guess you could simply let
the utility do the work Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Sep 22, 2002 12:44 am    Post subject: Reply with quote

I think it may actually be so that the program copies its own program to the other computer
remotely (to the admin$ share, which seems to respresent the WINDOWS directory?), then
remotely installs itself as a service and launches the service. I'll see if I can replicate
something like this in a DLL. The problem will probably be compiling my own service
application... Maybe Johnny knows anything about compiling services in C++.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Sep 22, 2002 11:35 am    Post subject: Reply with quote

The program I was looking at is located here:
http://www.matcode.com/remoteshutdown.htm

It is written in C...for C I use LCC-WIN32 for compiling (it's free), but I don't think source is included, but you might be able to ask for it...

Here is the e-mail I received from info@matcode.com:
Quote:
You right, there is started a small service using RPC service interface.
this client working on the system account and not required additional
user's threads or user's rights to shutdown or restart.
But there is an another way to shutdown (without poweroff) computer
remotelly, and much easey. You can find this at my examples page.

Best regards,
Vitaly.


Another program that might help is PowerOff 3.0. The source is included and is written in C/C++ (don't know yet). It does include the source code, which I think would be very helpful (it installs a service, but not a remote one). It can't power off remote computers from my experience. Only shuts them down. You can download that at http://users.pandora.be/jbosman/pwroff30.zip

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Sep 22, 2002 11:40 am    Post subject: Reply with quote

BTW, I'm planning on selling/distributing the application which will be greatly modified, and I can't rightfully sell another person's program. However, if it were a DLL or program sold for making programs, I could use that. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Sep 25, 2002 1:00 pm    Post subject: Reply with quote

Hi FreezingFire,
I just looked at the site and he does have some source code that uses the InitiateSystemShutdown function and he shows how to set the proper rights for the machine. I will re-write this to be used with Gadget as a single sub-routine for you and send you the new code.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Sep 25, 2002 9:34 pm    Post subject: Reply with quote

Thanks, Mindpower...that would be really nice! Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu Sep 26, 2002 12:47 pm    Post subject: Reply with quote

Remember that that function is just the InitiateSystemShutdown function I mentioned
which is not capable of powering off a computer.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Oct 06, 2002 4:22 pm    Post subject: ADMIN$ Share - HELP! Reply with quote

Tommy wrote:
I think it may actually be so that the program copies its own program to the other computer
remotely (to the admin$ share, which seems to respresent the WINDOWS directory?), then
remotely installs itself as a service and launches the service. I'll see if I can replicate
something like this in a DLL.


I received this reply about Poweroff, though I don't really understand everything about the ADMIN$ share...:

The creator of Poweroff wrote:
If you are experienced with Win32 programming in C/C++ you should take a look at the SCM (Service Control Manager API) and play around with services, especially with accessing the SCM of a remote machine.
Basically, Poweroff works like this: It makes a network connection to the
target machine's ADMIN$ share, copies over a binary, registers it as a
demand-start service which is then started remotely. The service does
nothing else than starting another process which first stops the service
and removes it and after that does an ExitWindowsEx in order to shut down the machine.


Thanks,

FreezingFire Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jun 28, 2003 3:52 pm    Post subject: Reply with quote

Do you think this would be more possible in VDS 5? I would like to
make a utility in VDS that powers off a remote machine like the program
Tommy mentioned:

http://www.stefan-kuhr.de/poweroff/main.php3

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jun 28, 2003 5:46 pm    Post subject: Reply with quote

I just tried the DOS command 'shutdown', and it worked pretty good... I haven't read the posts on the previous page (maybe it's mentioned there already), but it should be possible this way too... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jun 28, 2003 6:56 pm    Post subject: Reply with quote

Well I wanted to physically power off the remote computer, which is
entirely possible. I don't want to just shut it down. But I don't know
how to do this. Crying or Very sad

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group