Simple as that..hehe
You can RUN this server on any port you'll like to..and you can assign more than the SHUTDOWN function...
Read the comments I wrote in the code and learn how to do it so that it does EVERYTHING you want, remotely over the internet/network (or locally)
Use that to shutdown the machine...Do as shown above..
Need more help..then PM me or mail me at
i really like this program... im workin on messing w/ the code a lil so i can remotely control specific parts of my computer from school based on the commands i pass... and in case anyone is curious i have code to recieve the command that is sent after the /
VB Code:
Dim test2 As String
Dim testf As String
Dim artest() As String
artest() = Split(RECIEVE, vbCrLf)
test2 = Mid(artest(0), 6)
testf = Left$(test2, Len(test2) - 9)
testf returns any command entered after the http://your-ip/ part... this way you can have multiple functions if you just test to see what testf contains... so this can be used for more than just shutting down your computer... you can remotely launch applications too (i think ill post code for this later)
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
that way u have to do http://my-ip:257/run_C:\windows\sol.exe and it will run C:\windows\sol.exe... it basically runs anything after run_ you can change the "run_" part to whatever you want... but you have to change the two 4's and the 5 in the code to adjust for the lenght of the new "run_" command
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
this would be a great idea, but it is not an easy thing to accomplish... which is prolly why there are so few made in VB... i've seen a few on PScode, but they look very complicated... however if we can get enough people this would be a great thing to have, as id love to have a server i can actually call (partly) my own...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
Originally posted by Hampster Hmm, why not some of us get together and make a HTTP based remote server? Anyone else think this is a good idea?
Yeah I am doing a remote server app for my next project.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Originally posted by Hampster I agree, it would be easier to make the client in vb, but if it was web based then it would be more robust
Mind posting your code Skitchen8?
i don't have code for a server, i said that i found some on planetsourcecode... never bothered to d/l really though... im going to try to make a quick server using some of alexdata's code.... if i can get one to work then ill u/l it...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
You could program it into doing things like:
-turning your machine into an ftp server (any port you want)
for file up/downloading
-have it to run whatever program remotely (as mentioned in my
sourcecode at the top oof this post)
-you could make it act as an HTTP server (for homepages)
or as a reminder/phonebook/as a remote notepad...
Which saves the files on your machine...
-you could use it as a MAIL server (anonymous mails - not spam)
(i also have the code for that..)
-There are even more uses.. Like remote controlling..)
or people could deliver MESSAGES (almost like SMS) from the net and DIRECTLY to your screen (as MSGBOX : message from buddy)
The uses are may...Lets put all our ideas and sources together..and see how advanced we can get this...
For every change we make (major/important) make an ZIP and post it along with a description of the change....also comment the change inside the files)
This could be FUN !!!
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
yes, lets create a huge project... and we'll compete w/ microsoft
well, maybe not... but this could be a really cool project if we get everybody working on it... i currently have it so it will display a custom html page when you navigate to your own ip address... which is semi-server-like
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
so we use EXLORER(netscape) as CLIENT and the SERVER we make as SERVER..
I can add code for Sending mail... Sending IP/COMPUTERNAME to another IP or DOMAINNAME
I also have code for things as a KEYLOGGER and OPEN/CLOSE cdrom... Mouse Stuff,Clipboard Stuff.. and ALL the fun things..
Im woorking on the FTP part..(hard one)
But we need to make the server create a webpage when we connect to it and then show us a site with (commands) in link form, so that when we click the (command) "link" then it will execute the command on the remote machine (server)
I have already demonstrated the use of writeing a simple webpage..(see the source code..run it locally and see the text it creates on the page.. the page where you run http://127.0.0.1:257 )
Lets keep this rolling...
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
simple sendmessage thing, using my previous code w/ the testf string
VB Code:
'below the other code
If Left$(testf, 5) = "send:" Then
strmsg = Mid$(testf, 6)
sendmessage (strmsg)
End If
'New Sub
Private Sub sendmessage(message As String)
message = Replace(message, "%20", " ")
MsgBox message
End Sub
alexdata:sendmail isn't really needed if we have the sendmessage code... keylogger could be useful, but you want to be careful about including this, mouse move would be fun, but same thing as keylogger, be careful, well, actually same w/ the rest of the stuff u mentioned... cept for ftp... im thinking we can do how i've been sending the commands, but do like ftpup: for upload, and ftpdown: for download... w/ the download part u need to make sure that the user can set what dir's can be accessed...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
should i start a new thread in communications area for this project??
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, _
ByVal y As Long) As Long
If Left$(testf, 10) = "mousemove:" Then
strcoords = Mid$(testf, 11)
mousemove (strcoords)
End If
Private Sub mousemove(strcoords As String)
Dim spos As Long
Dim xcord As Integer
Dim ycord As Integer
Dim stringa() As String
stringa() = Split(strcoords, ",")
xcord = Int(stringa(0))
ycord = Int(stringa(1))
spos = SetCursorPos(xcord, ycord)
End Sub
now you can move the mouse
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
i did tons of work, check it out... now includes a custom client for sending the commands...
Last edited by Skitchen8; Apr 13th, 2002 at 09:20 PM.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
BTW: the functions.txt file contains all the functions that i have already implemented... more should come soon by tomorrow... then i will create an updater app that grabs a new functions.txt off a server to make sure that the text file is always updated to the newest features...
edit: now the server never disconnects, it is always listening... that bugged me before...
Last edited by Skitchen8; Apr 13th, 2002 at 09:21 PM.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
The ideas behinf the keylog,mouse,cd open/close,and so was inspired by all i know from netbus/sub7 server...
I like the FUN stuff..but not the FORMAT and DESTROY things..
I also like to use SERVER/CLIENT tools for remote helping folks..
But hey.. Im not saying that we MUST have them..but that we COULD add them (we can also passwd protect those functions, he he)
But I hold my hands on getting some sort of FTP and SENDMSG as main goals... and maybe some other usefull codes..Cant thinks strait now..but some functions we will find....
Hehe
But this thing can become great...
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
yeah, all that stuff would be good... im just sayin be careful w/ it...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
this is good... but we need to send the html page after we have already detected what it wants to send... then we can see if the thing says http://whatever/index.html then serve the index.html page that we have stored on the http server's computer... the problem is i don't know how to do this...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
i took the new example of the http server (i like the new i-face much better) and added all of my functions... if youd like ill work on the key-logger (i have already built a keylogger that i use sometimes, it grabs not only keys, but window titles) and im going to attempt to add a screenshot function...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
okay, ill throw my screenshot code into yours, and then i need to figure out a way to copy and paste my keylogger code (it is currently extremely messy)... this could be very good... we also cannot forget about FTP implementation...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
and just an idea for the next update... could you please post the code, and where you added it in... that way i don't have to go through and re-add all of my code into the new program...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
Currently Im NOT adding code, Im rewriting it every time..
That is why it comes up with a new design everytime...
I do this because my code thends to get messy...So i rewrite it
and use the WORKING parts from the past code and then I try to fix the errors and or add new functions...
But I will do so when the HTTP part is working correctly..
As for now I post it for you to see how far I have gotten...
But you can write your code into any of these servers... to test it..
But I will not implement your code,before the HTTP part is working..(cause it will get TO messy for me then...)
To many variables and subs to read throug ,while testing...
OK...So just post your code in any of my working SERVERS...and then we can add it to the BEST server in the end,... OK ??
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
Im currently working on that..There are errors..but
Try to press the BROWSE button..and then LOCATE the INDEX.ASP file in the folder (you must unpack ALL the files in the ZIP to the same folder, and run the program from THAT folder..
Then It should atleast show you anything...
If it doesn't REWRITE it till it does so...
AND POST THE MODIFIED CODE !!!
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
Re: Currently Im NOT adding code, Im rewriting it every time..
Originally posted by alexdata That is why it comes up with a new design everytime...
I do this because my code thends to get messy...So i rewrite it
and use the WORKING parts from the past code and then I try to fix the errors and or add new functions...
But I will do so when the HTTP part is working correctly..
As for now I post it for you to see how far I have gotten...
But you can write your code into any of these servers... to test it..
But I will not implement your code,before the HTTP part is working..(cause it will get TO messy for me then...)
To many variables and subs to read throug ,while testing...
OK...So just post your code in any of my working SERVERS...and then we can add it to the BEST server in the end,... OK ??
ok... that works good for me... i think im gunna make a page tonight for the project... got any names for it?? shutdown server sounds kinda dumb, and doesn't nearly describe all of its features...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
Site Service , RUNforFUN , RemoteHell , RemoteHappiness..
Ehh..when it comes to names..welll I just name it by the main
purpose it has..like HTTP SERVER... or REMOTE HTTP CONTROL
I don't know really...
Hmm.. Im glad that you could live with my way of coding/posting
(that i always remake, instead of change)
Well....
Im stuck on some ****:
when you connect from explorer to HTTPserver
it accepts the connection,and sends data to the explorer
but first AFTER that i recieve data from explorer..
which means, that ig Explorer requests anything, then i wont get that request before after i have send the main site..
So if EXPLORER request anything by using a link,
it will get the same site, then I will get the request, and then it has failed to load whats requested...
....REALLY ANNOYING....
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
Site Service , RUNforFUN , RemoteHell , RemoteHappiness..
Ehh..when it comes to names..welll I just name it by the main
purpose it has..like HTTP SERVER... or REMOTE HTTP CONTROL
I don't know really...
Hmm.. Im glad that you could live with my way of coding/posting
(that i always remake, instead of change)
Well....
Im stuck on some ****:
when you connect from explorer to HTTPserver
it accepts the connection,and sends data to the explorer
but first AFTER that i recieve data from explorer..
which means, that ig Explorer requests anything, then i wont get that request before after i have send the main site..
So if EXPLORER request anything by using a link,
it will get the same site, then I will get the request, and then it has failed to load whats requested...
....REALLY ANNOYING....
yes, i was having that same problem when i tried to adapt the original code to make it an http server... the only thing i can think is re-connect to the person's ip, and then send the required data...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
I was also thinking of that, until i thought of firewalls,routers,fakeip's
It needs to be directly connected..which means that the CLIENT must ALWAYS start the conversation...
If you try to connect to the cLIENT, then you'll fail, cause the client doesnt act as an server, it doesn't listen on port 80...
But there is another way around..
have an EMPTY string
have a START: (loop starting point)
Let the clien connect..
put its GET info into that string
sort out the command (whats after GET )
if get = "/" then
send some data (the main site)
else
goto start point
(which makes the client resend its info)
and then we will get it...
Im almost here..I know there is an error somewhere, but its hard to find it...
But im trying, cause i know its ho we hae to do it...
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
FTP server is NOT easy..Im struggeling with HTTP server
Well Im struggeling with HTTP server (simple send and recieve)
an ftp server needs logon auth, and needs to run commands...and searching the harddrive, keeping pot open for more thatn one person and so on....
I'll think i will finish that After the HTTP part..
Below i post a working code ,but with minor bugs in it...
Like you must DoubleClick a link, and press update in explorer inorder to recieve and send back data to explorer...
But if I fix the part that reads the GET from explorer then
it will be easy to make this work correctly...
I had to rebuild the server into something VERY easy before it worked..
But i will soon add all the buttons and the other things that we had in those other (not good,but ) working examples...
Hang in there... What are you working on right now?
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
Now it can do it all..
It opens a site when you go to its IP / domainname..
It opens a link if it exists..
It sends you to an errorpage if the
link "site" (read: CODE in FORM) doesnt exists..
And it can go back to the indexpage...
All this is working..
All i have to do now..is taht it opens FILES instead of PREWRITTEN code... I have done this before ,so it shuld not be hard.. to change that back...
The hard part was getting the communication to work correctly, and to make the linking work aswell...
But now, when I have solved this..It's time for a break...
I'll work on the rest (mentioned above) later today or tonight and definetly tomorrow...
Test the code, BELOW!!!
*************** Please use [highlight=vb]..your code.. [/highlight] when posting code!
When you have received the working answer to your question,
please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.
Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...
Please Answer All Questions With Working Code Examples...
very creative solution... im thinkin now we just have to get a list of files in the root folder for the web-page, and then you can detect if the passed variable is the same as any of those filenames, if so then serve the page, if not then serve an error page...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
[Highlight=VB]
Dim i As Long
Dim page2serve As String
For i = 0 To File1.ListCount - 1
If PageToGet = "/" & File1.List(i) Then
page2serve = File1.List(i)
End If
Next i
Dim strtemp As String
If page2serve <> "" Then
Open App.Path & "\webpages" & "\" & page2serve For Input As #1
Do While Not EOF(1)
Line Input #1, strtemp
SiteToSend = SiteToSend & strtemp & vbCrLf
Loop
Close #1
End If
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour