Firefox + FDM + BatchGotAdmin problem [SOLVED]

If it's not about a problem in the program
Post Reply
iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Firefox + FDM + BatchGotAdmin problem [SOLVED]

Post by iammmike » Sun Jan 08, 2017 4:05 am

I want to start using Firefox with Free Download Manager (3.9.7) solely under Sandboxie (so Forced).

Now in FDM I have set a Batch file to run after a File has been downloaded, this batchfile is the so called "BatchGotAdmin".

-https://sites.google.com/site/eneerge/s ... hgotadmin-

When running this under Sandboxie, after a download is finished I can see briefly a screen coming up (looks like Sandboxie asking for Admin rights or something (not sure as it's very brief)) and the batchfile doesn't finish.

What can I try to make this run correctly so I can start running FF completely under Sandboxie.

I think the problem lies in this part

Code: Select all

::Create and run the vb script to elevate the batch file
ECHO Set UAC = CreateObject^("Shell.Application"^) > "C:\TEMP\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "cmd", "/c ""!batchPath! !batchArgs!""", "", "runas", 1 >> "C:\TEMP\OEgetPrivileges.vbs"
"C:\TEMP\OEgetPrivileges.vbs" 
Thx in advance

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: Firefox + FDM + BatchGotAdmin problem

Post by Syrinx » Mon Jan 09, 2017 12:07 am

A tad confused here so I'll just ask some questions to try and better understand the situation.

Which OS?
Which version of Sandboxie?
You have Free Download Manager & Firefox installed on the computer, outside of Sandboxie?
You want to add both as Forced Programs to always run inside Sandboxie?
You want to use a bat file when a download finishes with FDM, running in Sandboxie, which tries to run with Admin rights?
Do you have Drop Rights enabled inside Sandboxie?
Goo.gl/p8qFCf

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 12:47 am

Sorry

1- OS: Win 7/8/10
2- Sandboxie 5.16 (registered Lifetime)
3- Yes, both are installed outside of the Sandbox
4- Yes (I have already set both FF and FDM as forced)
5- That Batch File is set in FDM to run when a download has finished
6- NO

The Batch needs to have Admin Rights to pass some parameters to My AV scanner (like date etc etc) this to create a log file/directory etc etc. Without the Admin rights the Batch File can't pass the parameters (different environment variables) and YES I have tested this.

Here is a thread, on the EMSISOFT website, that explains it a bit:

https://support.emsisoft.com/topic/1967 ... t-running/

Edit: When using Droprights, I get this

SBIE2217 Request to run as Administrator was denied due to dropped rights
SBIE2219 Request was issued by program wscript.exe [DefaultBox]
SBIE2220 To permit use of Administrator privileges, please double-click on this message line

And even if I close Firefox, FDM is still running in the background trying to download the file and YES I have set it in "Lingering Programs"

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 5:04 am

Another test.

I tried it with :
- Both FF and FDM running Forced in SB
- Only FF running Forced in SB
And both give the same result.

The download finishes with FDM
SB comes up to recover the file (Download dir is in Quick Recovery list)
I get UAC Prompt to Elevate the Scan program
Then nothing happens
I Close Firefox
FDM is still lingering with the downloaded file in the process list, but the file has been downloaded.

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 5:54 am

More testing.

Can eliminate both FF and FDM.

The one that is causing problems with running in Sandboxie with Elevated Priv's is A2cmd (from Emisoft) which I use to scan the Downloaded File. This one fails and thus the batch fails.

Edit: Yes, Already ran the "Software ...." from the configure and Emsisoft AM is listed :cry:

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: Firefox + FDM + BatchGotAdmin problem

Post by Syrinx » Mon Jan 09, 2017 10:42 am

Thank you for the extra information, VERY helpful in reproducing it.

Please try going to the Sandbox Settings > Resource Access > File Access > Full Access and adding

Code: Select all

\Device\NamedPipe\A-SQUARED_ANTI-MALWARE_PIPE
Goo.gl/p8qFCf

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 9:30 pm

@Syrinx

Wow. Thx. Going to test it and report back !

Really appreciated.

Edit: 9:32am

Yeeeessssssssss. It works !! THX

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 9:36 pm

Only one problem remaining

FDM keeps lingering. The download is already finished and the Batch has done it's job.
(FDM already set as lingering programs under Program Stop - Lingering)

Any idea's ??
sandb_1.JPG
sandb_1.JPG (72.22 KiB) Viewed 1377 times
Please note that in this screenshot "FDM" has only finished 10% of the download, but the download at this point has ALREADY finished.

Edit: I have set [FirefoxPrograms] as Leader Programs, but still FDM is lingering. :?

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Mon Jan 09, 2017 11:09 pm

I think that FDM is still lingering, because when it starts it sends the program to the tray and doesn't exit when a Download is finished. Now have to find a way to exit FDM when a Download has finished :)

Edit: Found it.

In FDM - Options - Settings - Misc - Essential - Exit (Don't ask for confirmation) then under Tools - Select "Exit when done"

iammmike
Posts: 26
Joined: Thu Dec 25, 2014 6:16 am
Location: SE-Asia

Re: Firefox + FDM + BatchGotAdmin problem

Post by iammmike » Tue Jan 10, 2017 3:16 am

Oke as my problems have been solved thanks @Syrinx

A Question for you who have FF solely running under SB.

Did you (under Applications - Web Browser - Firefox)
Selected any of the options there ?

For example:

- Allow Direct Access to Bookmarks etc.
- Allow Direct Access to Cookies etc.

The reason why I ask this is because NOT enabling this and emptying your Sandbox (once in a while) will delete all your saved bookmarks, cookies (etc etc). What do you guys think?

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2337
Joined: Mon Nov 07, 2016 3:10 pm

Re: Firefox + FDM + BatchGotAdmin problem [SOLVED]

Post by Barb@Invincea » Tue Jan 10, 2017 10:48 am

Hello iammmike,

I am marking this topic resolved based on your last update.

Here are some Firefox related threads (regarding your last question) that you can review:
http://forums.sandboxie.com/phpBB3/sear ... ark+access

Regards,
Barb.-

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest