Jump to content



Photo

LOCKER


  • Please log in to reply
7 replies to this topic

#1 CodyBarrett

CodyBarrett

    I LOVE Juicy Fruit!!!

  • Active Members
  • PipPipPipPipPipPip
  • 1,225 posts

Posted 29 March 2009 - 11:44 PM

ok currently this isnt very secure.. but for MOST people it is... and unless they find out the path they wont be able to find it
AutoIt         
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=..\..\ICONS\KEY&LOCK.ico #AutoIt3Wrapper_Res_Description=Makes a secure folder #AutoIt3Wrapper_Res_Fileversion=0.0031 #AutoIt3Wrapper_Res_LegalCopyright=Bob #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #cs ----------------------------------------------------------------------------  AutoIt Version: 3.3.0.0  Author:         Bob  Script Function:     Keeps A Secure Folder #ce ---------------------------------------------------------------------------- #include <WindowsConstants.au3> #include <GUIConstants.au3> #include <EditConstants.au3> #include <ButtonConstants.au3> #include <Misc.au3> #Include <GuiEdit.au3> #include <StaticConstants.au3> #Include <String.au3> #include <SendMessage.au3> HotKeySet ('^{F1}', 'ChangePass') Opt ('GuiOnEventMode', 1) Opt ('MustDeclareVars', 1) Global $Lockerpath = 'C:\LOCKER\' Global $Lsoectkteirngs_ini = @ScriptDir & '\LSOECTKTEIRNGS.ini' If Not FileExists ($Lockerpath) & Not FileExists ($Lsoectkteirngs_ini) Then     DirCreate ($Lockerpath)     IniWrite ($Lsoectkteirngs_ini, '********', '********', _StringToHex ('tbhoeb')) EndIf Dim $CurrentPassword = _HexToString (IniRead ($Lsoectkteirngs_ini, '********', '********', '')) Global $GUI = GUICreate ('LOCKER', 400, 145, -1, -1, -2139094904) GUISetBkColor (0x0, $GUI) GUISetFont (30, '', '', 'Courier New', $GUI) Global $L = GUICtrlCreateLabel ('', 0, 0, 400, 20) GUICtrlSetBkColor ($L, 0xFFFFFF) Global $STATUSLABEL = GUICtrlCreateLabel ('LOCKER', 10, 30, 260, 50) Dim $STATUSICON = GUICtrlCreateButton ('', 270,30, 100, 100, $BS_ICON) Global $PASSWORD = GUICtrlCreateInput ('', 10, 70, 240, 50, $ES_PASSWORD) GUICtrlSetBkColor ($PASSWORD, 0x0) GUICtrlSetColor ($PASSWORD, 0xFFFFFF) If FileGetAttrib ($Lockerpath) = 'RSHD' Then     GUICtrlSetImage ($STATUSICON,'Shell32.dll', -48)     Dim $LockStatus = 0 Else     GUICtrlSetImage ($STATUSICON,'Shell32.dll', -45)     Dim $LockStatus = 1 EndIf   GUICtrlSetColor ($STATUSLABEL, 0xFFFFFF) GUICtrlSetOnEvent ($STATUSICON, 'Setattrib') GUICtrlSetOnEvent ($L, '_WinMove') GUISetOnEvent ($GUI_EVENT_CLOSE, '_Exit') GUISetState () While 1     Sleep (100) WEnd Func ChangePass ()     If $LockStatus = 1 Then         Local $i = InputBox ('Change Password...', 'Choose a new Password', 'Password', '*', 400, 120, -1, -1, '', $GUI)         IniWrite ($Lsoectkteirngs_ini, '********', '********', _StringToHex ($i))         $CurrentPassword = $i     EndIf EndFunc Func Setattrib ()     If GUICtrlRead ($PASSWORD) = $CurrentPassword Then         If $LockStatus = 0 Then             $LockStatus = 1             GUICtrlSetImage ($STATUSICON, 'Shell32.dll', -45)             FileSetAttrib ($Lockerpath, '-SH')             GUICtrlSetData ($PASSWORD, '')             ShellExecute (@WindowsDir & '\explorer.exe', $Lockerpath)                   ElseIf $LockStatus = 1 Then             $LockStatus = 0             GUICtrlSetImage ($STATUSICON, 'Shell32.dll', -48)             FileSetAttrib ($Lockerpath, '+SH')             GUICtrlSetData ($PASSWORD, '')         EndIf     EndIf EndFunc Func _WinMove ()     While _IsPressed ('01')         Local $x = MouseGetPos (0)         Local $y = MouseGetPos (1)         WinMove ($GUI, '', $x, $y)     WEnd EndFunc Func _Exit ()     FileSetAttrib ($Lockerpath, '+SH')     Exit EndFunc



EDIT


*Added
-INIREAD password change & _Stringtohex () convertion before writeing to ini

EDIT

*Added
-Gui set pos accoording to mousepos... click secondary on the background.. then primary to cancel it

EDIT

*Added
-GUI custom title bar

EDIT

*changed ShellExecute ('explorer.exe', $Lockerpath) TO ShellExecute (@WindowsDir & '\explorer.exe', $Lockerpath)

Edited by CodyBarrett, 05 April 2009 - 07:21 PM.






#2 CodyBarrett

CodyBarrett

    I LOVE Juicy Fruit!!!

  • Active Members
  • PipPipPipPipPipPip
  • 1,225 posts

Posted 05 April 2009 - 06:27 PM

NEW VERSION


updated at the top

#3 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,563 posts

Posted 05 April 2009 - 07:04 PM

I would suggest changing
ShellExecute ('explorer.exe', $Lockerpath)
to
ShellExecute (@WindowsDir & '\explorer.exe', $Lockerpath)


Reason? There are a lot of viruses that create a file named explorer.exe on the Drive root and that will be read before the one in Windows. Of course the whole concept could be pooched if that has happened because your system may be screwed up.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#4 CodyBarrett

CodyBarrett

    I LOVE Juicy Fruit!!!

  • Active Members
  • PipPipPipPipPipPip
  • 1,225 posts

Posted 05 April 2009 - 07:19 PM

...

good point haha thank you..... DAMN YOU MALICIOUS CODERS!!!

#5 AJJ

AJJ

    Wayfarer

  • Active Members
  • Pip
  • 77 posts

Posted 08 April 2009 - 07:30 AM

ive tested this but on my machine it doesnt get any further than the GUI, it lets you write the password but not get any further (it also creates the LOCKER dir)

#6 CodyBarrett

CodyBarrett

    I LOVE Juicy Fruit!!!

  • Active Members
  • PipPipPipPipPipPip
  • 1,225 posts

Posted 08 April 2009 - 02:10 PM

im guessing you ran it.. F1 resets the password but ONLY if your locker status is UNLOCKED... and to unlock it you need the original password... the original is "tbhoeb" but you can change it before compilation

#7 FireFox

FireFox

    Liar using Chrome :>

  • Active Members
  • PipPipPipPipPipPip
  • 3,174 posts

Posted 08 April 2009 - 05:13 PM

@CodyBarrett
Nice concept... you'll have to add manythings to make it better and im sure youre working on it :D

Suggestions :
-Select locker folder path
-Add option gui window
-Etc... :o

Cheers, FireFox.
OS : Win XP SP3 / Win 7 SP1 / Win 8 | Autoit version: latest stable / beta

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | What you've done today | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

Updated 22 April, 2013 - If you find dead links please send me a PM, do not post in the topics !

#8 CodyBarrett

CodyBarrett

    I LOVE Juicy Fruit!!!

  • Active Members
  • PipPipPipPipPipPip
  • 1,225 posts

Posted 08 April 2009 - 08:03 PM

yes and thank you.. i GUESS i could make the LOCKER path resetable and when they reset it.. it moves the files to the new dir.. ill add that, and when you mean

-Add option gui window

...?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users