mIRC Home    About    Download    Register    News    Help

Print Thread
[SUGGESTION]: Add -b parameter to /run #253548 19/06/15 08:13 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Hello,

In some machines when trying to use /run to open an file (e.g: an .exe file or .bat) and the computer has into the Internet Explorer the option for asking the user to run the file (Open File Security Warning) the /run returns an error and the code broke, so i suggesting (if it is possible) to add an parameter into the /run (example: -b) to by-pass this Internet Explorer Open File Security Warning to not brake down the code.

-b = attempts to by-pass the open file security warning of internet explorer for the specific running file.

NOTE: If there is any other way to by-pass this and anyone has an workaround please reply.

- Thanks!

Re: [SUGGESTION]: Add -b parameter to /run [Re: westor] #253550 19/06/15 10:47 PM
Joined: Jan 2004
Posts: 1,273
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,273
Give some of these a try, this is a generic windows security setting and I don't think any program should be bypassing it.

http://www.sevenforums.com/tutorials/124...block-file.html

Re: [SUGGESTION]: Add -b parameter to /run [Re: Loki12583] #253551 19/06/15 10:52 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Yeah, i got all of these stuff read but nothing of its registry are working.

Since now i have found one command line tool that by-pass this s**t: http://blogs.technet.com/b/askcore/archi...deployment.aspx

I think its all about the Attachment Manager and there is an API that the -b parameter can by-pass this warning, and i suggesting this only because is breaking the /run , and of course by default the /run when someone use it is own risk, thats why also the mIRC has an lock option about it so the -b parameter is not gonna *HACK* the running progress of an file.

Re: [SUGGESTION]: Add -b parameter to /run [Re: westor] #253552 20/06/15 12:00 AM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
I wanna also add some informations about this problem/feature, i had found and test an command line tool by Microsoft (streams.exe) and working (under windows 10), that this tool by-pass this open file warning security and i had found some informations that may help mirc to implement it core (via -b paramater):

Informations:

Before downloading or opening any executable file.This is called "Open file security Warning". This is raised because of Attachment Execution Services (AES). Every program which uses the ShellExecute() API, must pass through AES.

About the Microsoft's "streams.exe" informations here

Last edited by westor; 20/06/15 12:05 AM.
Re: [SUGGESTION]: Add -b parameter to /run [Re: westor] #253953 14/07/15 11:05 PM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Use /run -h cmd.exe /C "<path>"

-h hides the terminal window.
/C instructs the terminal window to close after execution.

This should work since AES verification is only checked when running from a shell (i.e. Explorer)

Last edited by MeStinkBAD; 14/07/15 11:06 PM.

Beware of MeStinkBAD! He knows more than he actually does!