Jump to content

titewad

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by titewad

  1. Is there a way to read/update the registry of a secondary drive attached to a PC via USB, IDE or SATA? The secondary drive would be taken from another PC and have a full installation of Windows XP/Vista on it. I want to check a few values and update them if they are not correct. This would be for recovering from damage done by malware, such as when the userinit.exe login program is changed in the registry. I am familiar with using AutoIt to do this in the registry of the drive that was used to boot the PC, but not the secondary drive. Thank you.
  2. AVG located here: http://www.grisoft.com/doc/download-free-a...ootkit/us/crp/2 I can install it via script, however after it's installed when I run the program none of the controls are visible to the AutoIt Window Info program. I do not want to use screen coordinates. Tabs/enter send keys do not seem to work. Any ideas? I also tried Panda's new product here: http://www.PandaSoftware.com/products/antirootkit/, but ran into the same problem. Are there any other free rootkit cleaners (not just revealers) that are script friendly, or has anyone figured out how to run AVG or Panda with AutoIt? Thank you.
  3. Is there a way to automatically find variables in au3 source code that are not explicitly declared using DIM, LOCAL, or GLOBAL? I used the CTRL+T for TIDY and CTRL+F5 for PROD syntax check in the Scite editor and everything was reported as clean, but I know there are undeclared variables in the code from snippets that I cut and pasted from example scripts. I can go through the code manually and search on every variable name, but there's got to be an easier way.
  4. Is anyone using this script? I tried it and it hangs. I tried adding winactivate, winwaitactive, control focus, and finally winwaitclose to each case, but it still hangs. I tried increasing the sleep time. I call this function after installing AVG via a script, before running AVGSCAN.EXE via winwait with line commands to scan in a dos window. All three steps are done in one script: install, update, run. I am using the installation program from Grisoft's site, named avg75free_467a1008.exe The update downloads and then AVG starts to install the update and that's where it hangs. I always have to turn off the PC at that point. I can't escape from the script, even with an ESC hotkey, nor can I use the task manager to cancel the task, or control+alt+delete. I have to push the off button and hold it until the PC shuts down. My final code after making changes to try and stop the hanging looks like this: Func Update_AVG() Local $Done = False Run(@Programfilesdir & "\Grisoft\AVG7\avginet.exe") While Not $Done If WinExists("AVG Free Edition Update Selection", "Please select update") Then WinActivate("AVG Free Edition Update Selection") WinWaitActive("AVG Free Edition Update Selection", "Please select update") ControlFocus("AVG Free Edition Update Selection","","Button2") ControlClick("AVG Free Edition Update Selection", "Please select update", "Button2") WinWaitClose("AVG Free Edition Update Selection") ElseIf WinExists ("AVG Free Edition", "Update was successfully finished") Then WinActivate("AVG Free Edition") WinWaitActive("AVG Free Edition", "Update was successfully finished") ControlFocus("AVG Free Edition","","Button1") ControlClick("AVG Free Edition", "Update was successfully finished", "Button1") WinWaitClose("AVG Free Edition") Run(@Programfilesdir & "\Grisoft\AVG7\avginet.exe") ElseIf WinExists("Update AVG", "An error occurred when trying to connect") Then WinActivate("Update AVG") WinWaitActive("Update AVG", "An error occurred when trying to connect") ControlFocus("Update AVG","","Button1") ControlClick("Update AVG", "An error occurred when trying to connect", "Button1") WinWaitClose("Update AVG") $Done = True ElseIf WinExists("AVG Update", "Your AVG program already has the latest updates installed") Then WinActivate("AVG Update") WinWaitActive("AVG Update", "Your AVG program already has the latest updates installed") ControlFocus("AVG Update","","Button1") ControlClick("AVG Update", "Your AVG program already has the latest updates installed", "Button1") WinWaitClose("AVG Update") $Done = True Else Sleep(5000) ContinueLoop EndIf WEnd EndFunc The guru.grisoft.com does not respond to a ping, so I removed it from the script. This would be a great way to make sure the AVG virus database is up to date before running the scan, but I am not able to get it to not hang when I run the entire script. Finally, I added this to the XPClean script, which is where I am running it from.
  5. It's set up to do a quick scan. If you want to modify it to do a full scan, go to the adaware function and add this to the loop: If $Click = 1 Then If ControlCommand($MainWindowTitle, '', 'TACGFXcheckbox3', 'IsVisible', '') Then; 2nd page ControlClick($MainWindowTitle, '', 'TRadioButton1') $Click = 2 EndIf ContinueLoop EndIf You will, of course, have to renumber the current Click 1 through Click 6 to be Click 2 through Click 7.
  6. Yes, just do this before running it: $r=InetGet("http://dlserver.download.lavasoft.com/public/defs.ref", "C:\Program Files\Lavasoft\Ad-Aware SE Personal\defs.ref", 1) If $r=0 Then Msgbox(0,"Error","Ad-Aware definition file is not available.") Exit EndIf Note: I use the personal edition, so you will have to update the target path for the Pro version.
  7. Why not just run "aawsepersonal.exe /quiet" ?
  8. Before I re-invent the wheel, has anyone created a script to run Stinger yet? EDIT: Nevermind, found it: http://www.autoitscript.com/forum/index.ph...&hl=stinger
  9. CODERunWait(@ProgramFilesDir & "\Spybot - Search & Destroy\SpybotSD.exe /taskbarhide /allhives /autoupdate /autoimmunize /onlyspyware /autocheck /autofix /autoclose, @SW_SHOWDEFAULT") What are MSAS and Dial-A-Fix? If you find silent install & run switches for them, let me know.
  10. Try adding this after the Winwaitactive: ControlFocus('Name Not Found')
  11. I'm writing a script to turn on Windows Automatic Updates for friends/family. No matter how many times I email them with instructions for this and other PC protection measures, they never do it. I'm hoping if I automate it with a script so they just have to click on one thing, they'll do it. I ran the script, below, on a XP SP2 machine and it works fine, but I don't know if the screen is the same on a plain XP or XP SP1 machine. Does anyone have access to an unpatched XP PC, where they could check? Also, if anyone has a 98, 98SE, ME or 2000 OS and can check to see if the wuaucpl.cpl is available and if the screen title and button names are the same as those used in XP SP2, I'd appreciate it. Just reply back with the OS, service pack and any differences in window title or buttons. Thank you. CODE MsgBox(1,"You are running",@OSVersion & " " & @OSServicePack) Run("control.exe wuaucpl.cpl") WinWait("Automatic Updates") ControlClick("Automatic Updates", "", "Button1") ControlClick("Automatic Updates", "", "Button7") ControlClick("Automatic Updates", "", "Button5")
  12. I just found this autoit scripting utility and the XPCLEAN script yesterday. I wish I had known about both a long time ago. This script is pretty cool and it will be a great time saver the next time a friend/relative/coworker/neighbor asks me to clean up his/her PC. I do have a suggestion, though. This could be made even more slick if there were a checkbox to authorize automatic installation of any missing cleanup programs (AVG, Defender, etc.) if the script found they were not installed, and if the script waited for the installations to complete then continued with the cleanup instead of instructing the user to install them manually and restart the cleanup script. Even if a reboot is necessary, it would still be nice to automate the installation of the programs. Has anyone written/found scripts to install any of the cleanup programs yet? Since I'm new to this, I'd prefer to ask before I spend time re-inventing the wheel. I have searched and I have not found any yet. Some of the manual cleanups I've done have taken up to 22 hours to complete. I typically run AVG, Spybot, Adaware, CWShredder, Aboutbuster, Coolwebsearch_smartkiller, Defender and then a defrag, that is after installing all missing MS patches. It would be great to install a CD and let it run completely unattended, including downloading and installing any missing programs. Yesterday, I found this http://www.heise-security.co.uk/articles/80682 automatic script that gathers and installs patches. Some of you may find it useful if you haven't found it yet. Between the two scripts, I hope to be able to do cleanups with virtually no user input needed, except between the two processes. Now if we could merge the two scripts together, wow, what a winner. I'll continue to search for automatic installation scripts and if I find any I'll be happy to pass them on to Valuater to add to the XLClean script if he's interested in adding them. Thank you for the utility.
×
×
  • Create New...