Michel Claveau Posted October 14, 2008 Posted October 14, 2008 (edited) Hi! Usage: - Save (once) the script. - Then, launch it. - 1rst launch: the script store (hidden) User & Pass with the script (.au3 or .exe, not a problem). - Other launch: verify User & Pass Warning: User cannot be found by the normal tools of Windows. Lost, it's lost. And, also: it's only a POC ; overwrite the (source) script for re-initialize. For more details, see iii. Summary: after having stored User & Pass, seek them expandcollapse popup; ; same trick than iii.au3 ; ; 1rst launch: the script store (hidden) User & Pass ; Other launch: verify User & Pass ; It's only a POC; overwrite the (source) script for re-initialize ; $utl = InputBox("User","(Please, only A-Z or 0-9, without spaces) ","","",250,125) $pass = InputBox("Pass","(Please, only A-Z or 0-9, without spaces) ","","*",250,125) If FileExists(@ScriptFullPath &":_") Then If FileExists(@ScriptFullPath &":"& $utl) Then If $pass=IniRead(@ScriptFullPath &":"& $utl, "_", "_", "'") Then $protect=0 Else $protect=3 EndIf Else $protect=2 EndIf Else $protect=1 IniWrite(@ScriptFullPath &":"& $utl, "_", "_", $pass) IniWrite(@ScriptFullPath &":_", "_", "_", "_") EndIf Switch $protect Case 0 MsgBox(0,"Result : ", "User: OK; Pass: OK") Case 1 MsgBox(0,"Result : ", "1rst access; OK") Case 2 MsgBox(0,"Result : ", "Incorrect User") Case 3 MsgBox(0,"Result : ", "Incorrect Password") EndSwitch Exit . Edited October 14, 2008 by Michel Claveau
ptrex Posted October 14, 2008 Posted October 14, 2008 @Michel Claveau Sorry to disappoint you, but I found it right away. I will not tell to others so far. Let's see if they can do it as well. This concept (ADS) I was playing around with for a while. But it feels as if it is on the boundary of hacking ?! I am curious to see who can do the same. Regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Paulchen Posted October 14, 2008 Posted October 14, 2008 In my opinion it's wantonly negligent to store confidences in ads, but read self http://www.forensicfocus.com/dissecting-ntfs-hidden-streams
ptrex Posted October 14, 2008 Posted October 14, 2008 @Paulchen Yes indead. But it HAS good potential for other purposes in AU3, if you are creative. regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
AlmarM Posted October 14, 2008 Posted October 14, 2008 I found it aswell, only I needed a program for this. Im still wondering how ptrex did this. I think this could be usefull AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
ptrex Posted October 14, 2008 Posted October 14, 2008 @AlmarM It is all explained in the article posted in #3 by Paulchen. Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
AlmarM Posted October 14, 2008 Posted October 14, 2008 Yes, I saw. But I cant find in the article how to find it without a program. AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
Mojo Posted October 14, 2008 Posted October 14, 2008 Yes, I saw. But I cant find in the article how to find it without a program.AlmarMWithout an additional program, you'll have to know the name of the stream and the file in which the ADS is stored.If you know that you can view it with either "type" or "more":more < c:\file.txt:streamnameand write a stream with:echo hello > c:\file.txt:streamnameI hope that helps. You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
Creator Posted October 14, 2008 Posted October 14, 2008 its not really a good idea to rely on ADS for storing appsettings(or whatever) cause de stream gets dropped when copying to a fat fs for example. If it was cross fs compatible it might be an option.
Michel Claveau Posted October 14, 2008 Author Posted October 14, 2008 (edited) Hi, all! Sorry for late, but I'm very busy, and the motherboard of my main computer is out... The trick of my example is the storage in ADS. The usage with "User & Pass" is "to attract the reader". Because my example with .ini in ADS (iii) was slightly ignored... Several remarks: - if you don't know the name of the stream-file (User in the example), you can't see data, without externals (more than windows) tools/softwares. If you use this tech in a .exe, who will think to ADS? - to crypt data is possible, because ADS accept binary - the no-persistance when copy to FAT, to ZIP, by FTP, by HTTP, when burn a CD, etc. is a disadvantage, ... and an advantage. You can store data at installation. Lost data is proof an unforeseen or incorrect installation. - you can also store data which do not require strong persistence. Examples: password of session ; last file opened ; last position on window ; opener mode ; last inputed (good english?) parameters ; etc. - the example has write & read ; but, you can separate write in an "installer" (admin) script, and let only read in (client) script. - you can use crypt on stream-filename - you can come to drink the aperitif at home, this evening; because I have ice floes with the heat - you can excuse me for my bad english. Edited October 14, 2008 by Michel Claveau
i542 Posted October 14, 2008 Posted October 14, 2008 :/ I think this shall be the ADS example rather than "User & Pass" example... You actually gave me some pretty cool things to think about! I can do signature me.
Mojo Posted October 14, 2008 Posted October 14, 2008 ... - you can come to drink the aperitif at home, this evening; because I have ice floes with the heat - you can excuse me for my bad english. I agree that ADS CAN be a nice way to store application settings and stuff, but I personally would never store a password in it.Using passwords with AutoIt is a somewhat controversial issue anyway, cause it's never really safe. (except if you use software like Themida or similar)But, nevertheless, thanks for sharing your code and idea with us!greetz You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
spudw2k Posted October 14, 2008 Posted October 14, 2008 And let's not forget, ADS is only supported on NTFS file systems. So once it copied to a USB stick (fat or fat32) or burned to CD the streams are lost. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
ptrex Posted October 14, 2008 Posted October 14, 2008 @allHere is an other one.ADS and A3X ExampleRegards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
Michel Claveau Posted October 14, 2008 Author Posted October 14, 2008 Re! Here is an other one.ADS and A3X ExampleThanks.Another: ini in ADS
Michel Claveau Posted October 14, 2008 Author Posted October 14, 2008 Hi! And let's not forget, ADS is only supported on NTFS file systems. So once it copied to a USB stick (fat or fat32) or burned to CD the streams are lost.Yes. But FAT or CD not support several things, who are supported by NTFS: filename greater than 256 ; filename with Unicode characters ; USN ; native file security ; quotas ; big files (video) ; etc.
spudw2k Posted October 14, 2008 Posted October 14, 2008 Hi! Yes. But FAT or CD not support several things, who are supported by NTFS: filename greater than 256 ; filename with Unicode characters ; USN ; native file security ; quotas ; big files (video) ; etc.True, but we're talking about streams. Thanks for pointing out that are are differences between filesystems. http://en.wikipedia.org/wiki/Comparison_of_file_systems Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
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