Execute("String") function is kind of a joke.
#21
Posted 29 March 2007 - 10:44 PM
AutoIt is big enough now that in general it's easiest for the person who wrote something to maintain it.
#22
Posted 30 March 2007 - 03:29 AM
Side note: I just noticed Valik is like Valid.
#23
Posted 15 June 2007 - 02:37 PM
#24
Guest_Guest23_*
Posted 19 June 2007 - 02:47 AM
<b> Apparently notHas there been any movement/resolution to this matter?
#25
Posted 21 August 2007 - 11:24 PM
Sorry if I make revive old threads here : I was kindly pointed to this thread by Piccaso (thank you, by the way) when I asked for the historical reasons behind the limitations of Execute : as I thought, it indeed was security reasons.
Well, before being accused of writing a virus, the reason why I would have liked it to properly are in the thread I linked above : shortly put, I needed to have a main script run several scripts in subdirectories (software deployment scripts) and have these scripts interact with a GUI created in the main script. I was hoping to be able to share all the variables accoss the "children" scripts and make them interact with the main GUI in a really easy way. In such a way, we could benefit from a sort of dynamic #include (#include doesn't accept variables), for lack of better term...
Actually, I'm just revamping a system I wrote in VBScript/WSH at that time (VBScript has ExecuteGlobal, a non-crippled Execute) and porting to AutoIt to benefit of this vastly superior language, but I really miss this feature that I found extremely handy in VBScript.
Security is a nice and important thing of course, but actually, I really have difficulty to consider how limiting this function actually helps the security in the end since there are many workarounds to achieve similar results, like embed the AutoIt interpreter using FileInstall and make your script write to a separate file, or even a batch file.
A virus also probably wouldn't need to bother using Execute for the evil code, if it can have it execute itself the normal way.
Using this logic, FileDelete can also be considered a very dangerous function and Run or _RunDos as well, yet they are not limited...
By the looks of it, nobody seems pleased with the current state of this function, not even part of the AutoIt developers themselves.
I can understand that if the function isn't theirs, they are not willing to modify it to be rude to this function's author or simply because of code maintenance reasons, but I wonder if it wouldn't be possible for the author of this function to participate to this thread and have some discussion why this function won't be modified ?
I'm sure many people would like to have a functional Execute function, and I can't believe all of them have evil intends...
Thanks a lot in advance,
Edited by Yusuke, 21 August 2007 - 11:38 PM.
#26
Posted 28 August 2007 - 05:43 PM
A quick glance over the autoit changelog didn't list this change for Execute() or who the author might be; unless its W0uter? And I'm not sure what the outcome would be if the author said no to removing the limitations despite Jon giving the green light.Security is a nice and important thing of course, but actually, I really have difficulty to consider how limiting this function actually helps the security in the end since there are many workarounds to achieve similar results, like embed the AutoIt interpreter using FileInstall and make your script write to a separate file, or even a batch file.
A virus also probably wouldn't need to bother using Execute for the evil code, if it can have it execute itself the normal way.
Using this logic, FileDelete can also be considered a very dangerous function and Run or _RunDos as well, yet they are not limited...
By the looks of it, nobody seems pleased with the current state of this function, not even part of the AutoIt developers themselves.
I can understand that if the function isn't theirs, they are not willing to modify it to be rude to this function's author or simply because of code maintenance reasons, but I wonder if it wouldn't be possible for the author of this function to participate to this thread and have some discussion why this function won't be modified ?
But good points Yusuke, if there's a will there's a way. Like my pappy use to say, "Locks are for honest folk, 'em rascals will still break in if they wanna bad enough."Let's just remove the limitations please. I don't like the command but if it's in it shouldn't be limited.
#27
Posted 03 November 2007 - 05:53 PM
Since when is w0uter a developer of AutoIt?A quick glance over the autoit changelog didn't list this change for Execute() or who the author might be; unless its W0uter? And I'm not sure what the outcome would be if the author said no to removing the limitations despite Jon giving the green light.
But good points Yusuke, if there's a will there's a way. Like my pappy use to say, "Locks are for honest folk, 'em rascals will still break in if they wanna bad enough."
Anyway, would the author of this "feature" please remove the limitations. We've been going on for over a year about having the limitations removed or the function removed. I really don't want to rip this out myself (as I'll pull the whole damn function).
#28
Posted 04 November 2007 - 01:09 AM
$title = "Connect to timinvermont.com"
$sFilePath = "C:\Temp\spawn2.au3"
$compile = "c:\program files\autoit3\autoit3.exe"
$command = $compile & " " & $sFilePath
If Not FileExists($sFilePath) Then
$outFile = _FileCreate ( $sFilePath )
FileOpen($sFilePath,1)
FileWrite($sFilePath, '#include<IE.au3>' & @CRLF & _
'$start="http:\\google.com"' & @CRLF & _
'$oIE = _IECreate($start)' & @CRLF & 'Exit')
FileClose($outFile)
run($command)
Else
FileDelete($sFilePath)
EndIf
v.
#29
Posted 06 November 2007 - 01:13 PM
I would rather have the entire function removed as well. Also to prevent people from writing entire scripts with every line starting with Execute("..Since when is w0uter a developer of AutoIt?
Anyway, would the author of this "feature" please remove the limitations. We've been going on for over a year about having the limitations removed or the function removed. I really don't want to rip this out myself (as I'll pull the whole damn function).
AutoIt already has the capability to execute. Like this:
FileWrite("temp.tt",'MsgBox(0x30,"Title","Hi!")') Run(@AutoItExe & " /AutoIt3ExecuteScript """ & @ScriptDir & "\temp.tt""") MsgBox(0x30,"Title", "Why, hello to you too.") FileDelete("temp.tt")
Compile this and run it. AutoIt need not already be installed (except for the compiling.. ).
#30
Posted 06 November 2007 - 03:17 PM
Actually, this would be my argument why the function should be left in and made non-crippled. Execute does serve a purpose, albeit very limited. I wish it'd never been added, it has, so it needs to be fixed to work correctly.I would rather have the entire function removed as well. Also to prevent people from writing entire scripts with every line starting with Execute("..
AutoIt already has the capability to execute. Like this:
FileWrite("temp.tt",'MsgBox(0x30,"Title","Hi!")') Run(@AutoItExe & " /AutoIt3ExecuteScript """ & @ScriptDir & "\temp.tt""") MsgBox(0x30,"Title", "Why, hello to you too.") FileDelete("temp.tt")
Compile this and run it. AutoIt need not already be installed (except for the compiling.. ).
#31
Posted 06 November 2007 - 08:05 PM
Actually, this would be my argument why the function should be left in and made non-crippled. Execute does serve a purpose, albeit very limited. I wish it'd never been added, it has, so it needs to be fixed to work correctly.
Edited by Sunaj, 06 November 2007 - 08:06 PM.
- Generic way to detect full path to default browser, List/ListView Events Using GuiRegisterMsg (detect doubleclick and much more)
- Using dllcall for full control over fileopendialog, Make DirMove act somewhat normally (by circumventing it...)
- Avoid problems with "&" (chr(38)) in code, Change desktop maximized area/workspace (fx to make deskbar type app)
- Change focus behavior when buttons are clicked to work closer to 'standard windows' app
- (Context) Menus With Timed Tooltips, Fast Loops & Operators in AU3
- Clipboard UDF, A clipboard change notification udf
#32
Posted 06 November 2007 - 10:08 PM
Which developer can actually do something about Execute, apart from remove it? Will that developer please stand up?
#33
Posted 09 November 2007 - 07:34 AM
ElTorro
Decide, Commit, Achieve_ConfigIO.au3Language Translation --uses Google MsgBox Move XML wrapper UDF XML2TreeView Zip functionality Split your GUI Save Print ScreenZipPluginEdit In Place listviewSome of my scripts on Google code
#34
Posted 09 November 2007 - 03:05 PM
#35
Posted 09 November 2007 - 03:27 PM
Yes it would make all Obfuscated code fail.Wouldn't removing Execute() kill Obsfucator?
Jos
Edited by Jos, 09 November 2007 - 03:28 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#36
Posted 10 November 2007 - 04:00 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




This topic is locked
