jokke Posted May 26, 2007 Share Posted May 26, 2007 (edited) Well this is not a 100% secure firewall.! NOTE ! this script will not block ports allready inn use before script was ran, will only block ports opened after script is ran.Edit: $from and $to to the ports you want to block. Features:<*>When someone tries to connect on a port lets say 23, connecter gets message Port 23 is blocked. then Connection is closed.<*>Logs both IP and Port on connection atempt.<*>logs all events. eror opening port 139, 145, etc... This means they are allready inn use.Works great if you want to monitor connections made to the server on larger nettworks, or running a windows server without any other firewall.I tried this on my work place and over a 12 hour span it had blocked 7-13 connction atempts on each machine.Todo:<*>make script respond faster. (Now uses about 5 sec to respond if you block lots of ports at same time)<*>make gui to script, no biggie.<*>add, allowed ports, no biggie.To test script do this:Start ---> Run ---> telnet server-ip port ---> wait for about 5 sec if you have blocked port 1 - 3000, then this message should appear "Port *yourport* is blocked."firewall.au3 Edited May 26, 2007 by jokke UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
xStylezx Posted May 26, 2007 Share Posted May 26, 2007 Very cool.Man,is there any limit to what can be done with Autoit Link to comment Share on other sites More sharing options...
James Posted May 26, 2007 Share Posted May 26, 2007 Yeah. 3D gaming. I think Well done. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Obi-w00t Posted May 26, 2007 Share Posted May 26, 2007 Hey this is a really nice script, this will come in handy if I want to set up a locked-down Windows server. Just a quick tip: you can type netstat -a in the command prompt to see all your current connection, to which address they are connected and on which port. Also the port numbers can go up to 65535, in case anyone is interested. Link to comment Share on other sites More sharing options...
AutoItKing Posted May 26, 2007 Share Posted May 26, 2007 Yeah. 3D gaming. I think Well done.3D games are possible. But you need to use a bunch of OpenGL dll calls to do it.Nice script! I like it! Thumbs up. http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
McGod Posted May 26, 2007 Share Posted May 26, 2007 Yeah. 3D gaming. I think Well done.Dllcalls could possibly fix that void, it would just be slow as fuck. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted May 26, 2007 Share Posted May 26, 2007 well anyways really cool idea. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
Skrip Posted May 28, 2007 Share Posted May 28, 2007 This doesn't seem to be working for me. I tried your way to test it. And it doesn't seem to be working... [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
jvanegmond Posted May 28, 2007 Share Posted May 28, 2007 (edited) This is the worst example of using TCP I have ever seen. No one should use this, or even think of using it. Jokke, besides the obvious flaws. Most firewalls are 'stealth', this means that without any open ports you will never know that the computer exists or not. Edited May 28, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
jokke Posted May 28, 2007 Author Share Posted May 28, 2007 (edited) This is the worst example of using TCP I have ever seen.No one should use this, or even think of using it.Jokke, besides the obvious flaws. Most firewalls are 'stealth', this means that without any open ports you will never know that the computer exists or not.Well, yeah i know this aint a true firewall, more like a monitor service. This is AutoIt we are talking about, a scripting langue, so there are some limitations we have to work with.But since you say this is the worst example you have ever seen, show me how you would do it, i would rather learn how to do it properly then writing bad code over and over again. Thanks. Edited May 29, 2007 by jokke UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
AutoItKing Posted May 29, 2007 Share Posted May 29, 2007 (edited) AutoITNO, NO, NO!!! It's AutoIt NOT AutoIT Edited May 29, 2007 by AutoItKing http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
jokke Posted May 29, 2007 Author Share Posted May 29, 2007 ^^ AutoIt it is UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
A. Percy Posted May 29, 2007 Share Posted May 29, 2007 Yeah. 3D gaming. I think Well done.Nein! OpenGl Plugin Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
Sn0opy Posted May 29, 2007 Share Posted May 29, 2007 The program should check each open port by itself and each incoming AND outgoing connections. Than it's a very simple and nice firewall! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now