Jump to content

Spyderco

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Spyderco

  1. Added the line and still got the error, it just didn't return a status, so it grabbed the status from the previous line. However, the errors stopped now... even with the timout taken out of the script... Guess I looked for the reason of errors in the wrong place after all. Time to check the event logger on the webserver in this case... Thanks for the quick feedback! It's definately a line I'll keep using in some scripts!
  2. Thanks! This might just be what I'm looking for!
  3. Yeah, sorry... Got posted even though I wasn't finished typing it yet. Edited it now
  4. Hi everyone I'll explain what I'm trying to achieve briefly: I run several websites and am running pilots for a new framework on a few server. I have a certain script set us like a bunch of checkboxes, one of which checks a URL for it's status response set to a $ClientURL variable. So I have something like the following: Set includes Set variables (one of which is $ClientURL = ("www.example.com"). Start loop Main script If $ClientURL = ("www.example.com") Then $ClientURL = ("www.a.com") If $ClientURL = ("www.a.com") Then $ClientURL = ("www.b.com") ElseIf $ClientURL = ("www.b.com") Then $ClientURL = ("www.c.com") ElseIf $ClientURL = ("www.c.com") Then $ClientURL = ("www.d.com") ElseIf $ClientURL = ("www.c.com") Then $ClientURL = ("www.example.com") Sleep until the script restarts the loop. End loop This only uses one main script and changes the variables needed to run in by the following value every time. My problem is this... Everything runs smoothly, but if a webserver takes too long to respond, the program will timeout. This doesn't give a certain status, so it doesn't get logged by the script so it can move on to the next one. It just freezes and crashes on it eventually. Is there a way to add a certain timeout to a line? Lets say something like this: Func A () $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", $ClientURL, False) $oHTTP.Send() If the time it takes = >10 seconds Move on to the next line Else Do nothing EndFunc I thought about making a variable that tracks the system time in seconds that has passed by and resets it at the beginning of every new function, but I was hoping there'd be something more efficient... Thanks in advance guys!
  5. Thanks guys! I'll give these a go
  6. Good morning everyone This is my first post here, but I've been using AutoIt for quite some time now. I've used it to automate everything from setting up databases used to build automated websites via IIS all the way to creating games and goofy programs for the hell of it. AutoIt is simple, effective and good at what it does. However... There are quite some applications I use in which I have some sensitive information compiled into the .exe. This could be SMTP credentials, automated login key generators for working enviroments, hash generators for FTP purposes, etc. Now I know that not everyone will go through the effort of trying to get into the script behind the executable, but I like it, so other must too. I've found a way to restore the .exe's back to .au3 files regardless of what version of AutoIt was used (unlike the Exe2Aut.exe we used to have). Information which is simply puy in a Send/FileWrite statement or something, will remain as plaintext within the source code of the exe. Even information that's encrypted with the _Crypt function can be seen as plaintext without too much effort. And simply protecting the file with user rights, group policies, etc. might not be enough in every scenario. Now the restored .au3 files do have some issues running from time to time, but it's just a matter of reading to see exactly what was written in the code. Especially things like I mentioned above. Is there any way to encrypt everything in a simple(ish) way so my source code has a bit better protection? I'm looking for a method that doesn't store the key inside of the script or uses 4 different scripts to do so. Thanks guys! Glad to finally be on the forum instead of lurking all the time
×
×
  • Create New...