Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Simple, Mini Webserver In Autoit


  • Please log in to reply
59 replies to this topic

#1 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 19 March 2006 - 10:37 AM

Full-featured version of WebServer: (Recommended)
  • Logs Requests Recieved
  • Ability to extend WebServer using DSO. (Refer to the README file.)
  • Includes a file browser DSO.
  • Now works with FireFox!
Extreme basic version of Webserver: (Will not update unless there are bugs)
http://www.autoitscript.com/fileman/users/nfwu/WebServerBasic.zip
  • Extremely basic version of webserver.
  • No DSO.
  • Update! Works with FireFox.
(Out of date) Screenshots: http://www.autoitscript.com/forum/index.ph...ndpost&p=163412

#)

Edit: Version 0.4
Edit: Added Basic Webserver

Edited by Jon, 23 December 2012 - 06:45 PM.








#2 cppman

cppman

    Anonymous

  • Active Members
  • PipPipPipPipPipPip
  • 1,626 posts

Posted 19 March 2006 - 11:34 AM

Nice Job!

#3 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 19 March 2006 - 12:16 PM

Update! v0.2
-----------------
Now logs all requests recieved.
Rather simple update, actually.

#)

#4 theguy0000

theguy0000

    Benevolent Dictator

  • Active Members
  • PipPipPipPipPipPip
  • 3,750 posts

Posted 19 March 2006 - 01:49 PM

AHH! OMFG WTF

this is awsome! I cant really test it since I already have a webserver...but how on earth did u figure out how to do this?
The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

#5 PezoFaSho

PezoFaSho

    Adventurer

  • Active Members
  • PipPip
  • 132 posts

Posted 19 March 2006 - 04:19 PM

would this work for someone behind a router?
50% of the time, it works all the time

#6 jackyyll

jackyyll

    Polymath

  • Active Members
  • PipPipPipPip
  • 214 posts

Posted 19 March 2006 - 05:11 PM

would this work for someone behind a router?


Probably, but you will have to forward ports from your router control panel to your computer.

#7 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 20 March 2006 - 07:31 AM

Took down the link to my computer...

Updated for version 0.3~!

Here are some screenshots instead:
Sample Webpage: Posted Image
Sample output from the "Directory Browsing" functionality of Direct Server Output: Posted Image

And some other screenshots (click to enlarge):
Proof that users can download files:Posted Image
Sample Error 404 (File Not Found):Posted Image
Sample Error 401 (Unauthorized):Posted Image
Error 401 and 404 are the only currently supported Errors.

#)

EDIT: i just noticed a typo in my webpages... version 1.2 ... supposed to be 0.2... oh never mind!
EDIT: updated for version 0.3! typo HAS NOT been corrected yet... (it's still 1.2)

Edited by nfwu, 23 March 2006 - 08:42 AM.


#8 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 20 March 2006 - 07:35 AM

would this work for someone behind a router?





Yes, forward the ports.



It'll also work behind a firewall (had some of my classmates to connect to my computer to test), but you would have to forward incoming TCP traffic on port 80.



#)

#9 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 20 March 2006 - 07:37 AM

AHH! OMFG WTF

this is awsome! I cant really test it since I already have a webserver...but how on earth did u figure out how to do this?





Ananlysing logs like this:

Plain Text         
2006-03-19 20:13:10 : GET / HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-19 20:13:12 : GET /woodlogo.jpg HTTP/1.1 Accept: */* Referer: <a href='http://220.255.59.229/' class='bbc_url' title='External link' rel='nofollow external'>http://220.255.59.229/</a> Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-19 20:13:23 : GET /404.html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-19 20:13:40 : GET /error_404.html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-19 21:31:43 : GET / HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-19 21:31:44 : GET /woodlogo.jpg HTTP/1.1 Accept: */* Referer: <a href='http://220.255.59.229' class='bbc_url' title='External link' rel='nofollow external'>http://220.255.59.229</a> Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.59.229 Connection: Keep-Alive 2006-03-20 15:21:45 : GET / HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive 2006-03-20 15:21:52 : GET /woodlogo.jpg HTTP/1.1 Accept: */* Referer: <a href='http://220.255.121.19/' class='bbc_url' title='External link' rel='nofollow external'>http://220.255.121.19/</a> Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive 2006-03-20 15:23:02 : GET /page_that_does_not_exist.html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive 2006-03-20 15:24:00 : GET /../../Atempt_accessing_illegal_file.htm HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive 2006-03-20 15:24:09 : GET /../../../ HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive 2006-03-20 15:24:16 : GET /../ HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Host: 220.255.121.19 Connection: Keep-Alive




Rather simple... only understand GET so far.... I'll expand it's vocabulary to POST soon...



#)

Edited by nfwu, 20 March 2006 - 07:38 AM.


#10 ConsultingJoe

ConsultingJoe

    ConsultingJoe.com

  • Active Members
  • PipPipPipPipPipPip
  • 1,669 posts

Posted 20 March 2006 - 03:56 PM

I just noticed that my IP address changes with everytime I connect to the internet... so i'm taking this down...


Couldn't you get an account with no-ip and use there ip updater software to update your new ip everytime it changes?

#11 erifash

erifash

    autoit - think free

  • Active Members
  • PipPipPipPipPipPip
  • 517 posts

Posted 21 March 2006 - 10:20 PM

Nice job! I have been away for so long I didn't get a chance to see it earlier. :)

#12 friendfox

friendfox

    Wayfarer

  • Active Members
  • Pip
  • 74 posts

Posted 22 March 2006 - 06:11 AM

Vrey cool
But can not use it to make an files download server

#13 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 23 March 2006 - 08:14 AM

Vrey cool
But can not use it to make an files download server





You CAN use it as a files download server now.

Just that you have to ZIP everything which you want people to download.



#)

#14 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 23 March 2006 - 08:38 AM

Update! v0.3
----------------
Added 'Direct Server Output' functionality.
First function included is a directory browser.

Screenshots updated to reflect the changes.

PLANS FOR THE NEXT UPDATE:
EXTERNAL SERVERS & MORE DSO FUNCTIONALITY
===========================================
This 'external servers' functionality will send 'server' applications data when requested by a web browser
(for example, convert @zerocool60544's ***remote Pc Control*** into a server application that is setup to use this web server, then you can use the application by directly connecting to the computer, instead of needing to co through a remote server)
Also support for POST commands will be given in the next update

#)

#15 ConsultingJoe

ConsultingJoe

    ConsultingJoe.com

  • Active Members
  • PipPipPipPipPipPip
  • 1,669 posts

Posted 23 March 2006 - 04:33 PM

sounds very cool
can you tell me what I would do just to host one file so I can connect to it online like:
207.32.12.32:80/file.txt
is it posible just to have it as file server. if so can you highlight the code I would need

#16 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 24 March 2006 - 09:18 AM

sounds very cool
can you tell me what I would do just to host one file so I can connect to it online like:
207.32.12.32:80/file.txt
is it posible just to have it as file server. if so can you highlight the code I would need


Sure, use version 0.2:
here is the required files (includes source) for v0.2:
(NOTE: Comple v2_clone.au3. Do NOT use WoodMiniWebServer_original.exe)

Note to others: the LATEST version can be found here: http://www.autoitscript.com/forum/index.ph...ndpost&p=163087
Only if you require basic functionality then you download this v0.2

It's a re-write of v0.2 because I can't find the source of v0.2...
One advantange is that it is much more readable than the original :)



#)

Edited by Jon, 23 December 2012 - 06:46 PM.


#17 MatteoGuallini

MatteoGuallini

    Wayfarer

  • Active Members
  • Pip
  • 53 posts

Posted 24 March 2006 - 10:40 AM

I'm running MiniWebServer in my pc
My pc is on a LAN and my IP is 192.168.0.44
If i start the browser and type http:\\192.168.0.44, i can see only the html code of the webpage called index.html.
In addition a Message box regarding the htmlcode appears.

I think it is a bug.

#18 nfwu

nfwu

    I'm not active on these forums

  • Active Members
  • PipPipPipPipPipPip
  • 1,234 posts

Posted 24 March 2006 - 10:56 AM

I'm running MiniWebServer in my pc
My pc is on a LAN and my IP is 192.168.0.44
If i start the browser and type http:\\192.168.0.44, i can see only the html code of the webpage called index.html.
In addition a Message box regarding the htmlcode appears.

I think it is a bug.





The message box pops up with a timeout of 1 second on the computer running the server. This is to alert the user on the server that someone has sent a request to the webserver.



As for that only HTML code in your browser... that's wierd... what browser are you using? I'm using Internet Explorer v 6.0 and it works fine...

And the webserver I am using is the one found in the first post, version 0.3.

???

#)

#19 MatteoGuallini

MatteoGuallini

    Wayfarer

  • Active Members
  • Pip
  • 53 posts

Posted 24 March 2006 - 12:34 PM

The browser is Firefox 1.5 and the WebServer Version is 0.3 downloaded today from the first post.

Now i try using Internet Explorer and i tell you the result.

Bye

#20 MatteoGuallini

MatteoGuallini

    Wayfarer

  • Active Members
  • Pip
  • 53 posts

Posted 24 March 2006 - 12:39 PM

Using IE the there isn't problem!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users