Page 1 of 3 123 LastLast
Results 1 to 40 of 91

Thread: FREE SOURCE: A "ShutDown" Server.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Wink FREE SOURCE: A "ShutDown" Server.

    I have made an SHUTDOWN SERVER for all to have!!

    You simply do this from Internet Explorer(or netscape)

    http://YOURDOMAIN-or-IPADRESS:257


    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

    [email protected]

    OK..

    Here Is where I got the IDEA..
    http://www.vbforums.com/showthread.p...862#post930862
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  2. #2
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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:
    1. Dim test2 As String
    2. Dim testf As String
    3. Dim artest() As String
    4. artest() = Split(RECIEVE, vbCrLf)
    5. test2 = Mid(artest(0), 6)
    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

  3. #3
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    ok, i got the run code working now

    VB Code:
    1. If Left$(testf, 4) = "run_" Then
    2.     Shell (Mid$(testf, 5, Len(testf) - 4))
    3. End If

    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

  4. #4
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    Hmm, why not some of us get together and make a HTTP based remote server? Anyone else think this is a good idea?

  5. #5
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  6. #6
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    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?

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    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

  8. #8
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Talking I like the idea...Web Based Tool

    A tool that you could use for anything..

    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...


    My Unfinished Projects and My working Programs
    ***************

  10. #10
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Exclamation So we use EXLORER(netscape) as CLIENT and...

    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...


    My Unfinished Projects and My working Programs
    ***************

  12. #12
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    simple sendmessage thing, using my previous code w/ the testf string
    VB Code:
    1. 'below the other code
    2. If Left$(testf, 5) = "send:" Then
    3.     strmsg = Mid$(testf, 6)
    4.     sendmessage (strmsg)
    5. End If
    6.  
    7. 'New Sub
    8. Private Sub sendmessage(message As String)
    9. message = Replace(message, "%20", " ")
    10. MsgBox message
    11. 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

  13. #13
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  14. #14
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    VB Code:
    1. Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, _
    2.     ByVal y As Long) As Long
    3.  
    4. If Left$(testf, 10) = "mousemove:" Then
    5.     strcoords = Mid$(testf, 11)
    6.     mousemove (strcoords)
    7. End If
    8.  
    9. Private Sub mousemove(strcoords As String)
    10. Dim spos As Long
    11. Dim xcord As Integer
    12. Dim ycord As Integer
    13. Dim stringa() As String
    14. stringa() = Split(strcoords, ",")
    15. xcord = Int(stringa(0))
    16. ycord = Int(stringa(1))
    17. spos = SetCursorPos(xcord, ycord)
    18. 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

  15. #15
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    i did tons of work, check it out... now includes a custom client for sending the commands...
    Attached Files Attached Files
    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

  16. #16
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  17. #17

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Red face Guess we can keep this post running..

    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...


    My Unfinished Projects and My working Programs
    ***************

  18. #18
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  19. #19
    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?
    Eh, they got ya beat...

  20. #20

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Thumbs up Well ..this is how my HTTP server works..

    Here you have it...Try the RUN LOCALLY button...

    (shutdown any HTTP server you might have running)
    and load up mine...

    Then do this:

    either press RUN LOCALLY

    or in explorer/netscape

    http://127.0.0.1 or http://YOURDOMAINorIP

    And see the results...
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  21. #21
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  22. #22
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  23. #23
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    I'm working on a httpd also,
    So far:
    VB Code:
    1. Option Explicit
    2. Private Sub Form_Load()
    3. WS(0).LocalPort = 80
    4. WS(0).Listen
    5. End Sub
    6.  
    7. Private Sub WS_ConnectionRequest(Index As Integer, ByVal requestID As Long)
    8. Dim i As Integer
    9. For i = 1 To 32200
    10.     If WS.ubound < i Then
    11.         Load WS(i)
    12.     End If
    13.     If WS(i).State = 0 Then
    14.         WS(i).Accept requestID
    15.         Exit For
    16.     End If
    17.    
    18.     If WS(i).State = 8 Then
    19.         WS(i).Close
    20.         WS(i).Accept requestID
    21.         Exit For
    22.     End If
    23. Next
    24. End Sub
    25.  
    26. Private Sub WS_DataArrival(Index As Integer, ByVal bytesTotal As Long)
    27. Dim Str As String, i As Integer
    28. WS(Index).GetData Str
    29. For i = 1 To Gettok(Str, 0, vbCrLf)
    30.     DataIn Index, Gettok(Str, i, vbCrLf)
    31. Next
    32. End Sub
    33.  
    34.  
    35. Public Sub SD(Index As Integer, StrData As String, Optional CrLf As Boolean = True)
    36. If WS(Index).State = 7 Then
    37.     If CrLf Then
    38.         WS(Index).SendData StrData & vbCrLf
    39.     Else
    40.         WS(Index).SendData StrData
    41.     End If
    42. End If
    43. End Sub
    44. Public Function Gettok(ByVal strVal As String, intIndex As Integer, strDelimiter As String) As String
    45. On Error Resume Next
    46. Dim strSubString() As String
    47. If intIndex = 0 Then
    48.     strSubString() = Split(strVal, strDelimiter)
    49.     Gettok = UBound(strSubString)
    50. Else
    51.     strSubString() = Split(strVal, strDelimiter)
    52.  
    53.     If intIndex > 0 Then
    54.  
    55.         Gettok = strSubString(intIndex - 1)
    56.  
    57.     ElseIf intIndex = 0 Then
    58.  
    59.         Gettok = strSubString(0)
    60.  
    61.     End If
    62. End If
    63. End Function
    64.  
    65. Public Sub DataIn(Index As Integer, StrData As String)
    66. Debug.Print StrData
    67. Dim Request As String, i As Long, File As String
    68. Select Case UCase$(Gettok(StrData, 1, " "))
    69.     Case "GET"
    70.         Request = Gettok(Gettok(StrData, 2, " "), 2, "?")
    71.         File = Gettok(Gettok(StrData, 2, " "), 1, "?")
    72.         Open App.Path & File For Binary As #1
    73.             Do Until i >= LOF(1)
    74.                 If i = 0 Then i = 4096
    75.                 SD Index, Input(i, 1), False
    76.                 i = i + 4096
    77.                 DoEvents
    78.             Loop
    79.             WS(Index).Close
    80.         Close #1
    81. End Select
    82. End Sub
    83.  
    84. Public Function RequestParse(Request As String, Key As String) As String
    85. RequestParse = Replace$(Gettok(Gettok(Request, 2, Key & "="), 1, "&"), "?", "")
    86. End Function
    Last edited by Hampster; Apr 14th, 2002 at 12:34 PM.

  24. #24

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Talking I am working on the Index.html stuff

    But I've choosen to call it INDEX.ASP

    (cause i have made NOTEPAD open *.ASP files in notepad)
    So that makes it easier to edit the HTML inside the files...

    But i use standard <HTML> inside the files...

    But I have small problems.. It serves us the INDEX.ASP when we connect, but it doesn't serv us anything when we EG: click a link...

    So I'm working oon that particular part...

    Here is my current work..
    Please add your KEYLOGGER and SCREENGRABBER into the code..
    ...


    Then at the end ...lets put the BEST results together...
    Attached Files Attached Files
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  25. #25
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  26. #26
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  27. #27

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Wink 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...


    My Unfinished Projects and My working Programs
    ***************

  28. #28
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    you program doesnt write anything back to the page for me.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  29. #29

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Question 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...


    My Unfinished Projects and My working Programs
    ***************

  30. #30
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943

    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

  31. #31

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Talking well..a name...hmm..

    how about:

    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....
    Attached Files Attached Files
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  32. #32
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    Look at the way I handled GET in the code I posted...
    Originally posted by Hampster

    VB Code:
    1. Public Sub DataIn(Index As Integer, StrData As String)
    2. Debug.Print StrData
    3. Dim Request As String, i As Long, File As String
    4. Select Case UCase$(Gettok(StrData, 1, " "))
    5.     Case "GET"
    6.         Request = Gettok(Gettok(StrData, 2, " "), 2, "?")
    7.         File = Gettok(Gettok(StrData, 2, " "), 1, "?")
    8.         Open App.Path & File For Binary As #1
    9.             Do Until i >= LOF(1)
    10.                 If i = 0 Then i = 4096
    11.                 SD Index, Input(i, 1), False
    12.                 i = i + 4096
    13.                 DoEvents
    14.             Loop
    15.             WS(Index).Close
    16.         Close #1
    17. End Select
    18. End Sub

  33. #33
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943

    Re: well..a name...hmm..

    Originally posted by alexdata
    how about:

    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

  34. #34

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Wink 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...


    My Unfinished Projects and My working Programs
    ***************

  35. #35
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    448
    you guys could put in the program to make it a ftp server

  36. #36

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Talking 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..

    But i do have some example posted at ... ehh:

    http://www.vbforums.com/showthread.p...689#post930689
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  37. #37

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Wink My stuggles with HTTP has comed to an end!

    Skitchen8, check this out....

    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?
    Attached Files Attached Files
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  38. #38

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Thumbs up I solved it..I made HTTP server WORK..

    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!!!
    Attached Files Attached Files
    ***************
    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...


    My Unfinished Projects and My working Programs
    ***************

  39. #39
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  40. #40
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    yes, i got it to work....


    [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

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width