Pepper flash opens a console window on Windows

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Pepper flash opens a console window on Windows

Postby amaitland » Fri Nov 06, 2015 9:22 pm

You can follow the upstream issue (currently unresolved)

https://code.google.com/p/chromium/issu ... ?id=508002
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Pepper flash opens a console window on Windows

Postby iegor » Mon Nov 09, 2015 4:42 am

From what I can gather, pepper flash plugin just call CreateProcess with command line like "C:\Windows\system32\cmd.exe /c echo NOT SANDBOXED". As I understand, in case of sandboxed plugin's process this call will be forbidden therefore you don't see console window.
iegor
Techie
 
Posts: 11
Joined: Tue Aug 26, 2014 12:42 pm

Re: Pepper flash opens a console window on Windows

Postby magreenblatt » Mon Nov 09, 2015 12:14 pm

iegor wrote:From what I can gather, pepper flash plugin just call CreateProcess with command line like "C:\Windows\system32\cmd.exe /c echo NOT SANDBOXED". As I understand, in case of sandboxed plugin's process this call will be forbidden therefore you don't see console window.

If you've verified that this is what's happening please add that information to the Chromium issue.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Pepper flash opens a console window on Windows

Postby amaitland » Mon Jan 11, 2016 12:05 am

It appears that Chromium issue has been marked as wontfix, so I'd suggest anyone that this problem affects please comment asking the devs politely to reconsider.

https://code.google.com/p/chromium/issues/detail?id=508002
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Pepper flash opens a console window on Windows

Postby Czarek » Tue Jan 12, 2016 5:02 am

I was thinking about creating a Chromium patch and including it in CEF - there are already a bunch of Chromium patches in CEF. However when searching Chromium code for "NOT SANDBOXED" there are no results. I've also looked for Debug/Output functions in ppapi code and looks like this console message doesn't use any of official API. Pepper Flash Plugin is not open source so it's not possible to patch it, but.. I've opened pepflashplayer.dll and libpepflashplayer.so in a hex editor and found this code: "echo NOT SANDBOXED". Attaching screenshot below. Looks like this can be easily fixed by modifying a few bytes in dll/so files :>

NOT SANDBOXED.jpg
NOT SANDBOXED string in pepflashplayer.dll
NOT SANDBOXED.jpg (322 KiB) Viewed 18065 times
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Pepper flash opens a console window on Windows

Postby amaitland » Tue Jan 12, 2016 5:15 am

How do you think this would go with virus scanners?

Is it worth posting your findings on the chromium issue?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Pepper flash opens a console window on Windows

Postby Czarek » Tue Jan 12, 2016 5:22 am

amaitland wrote:How do you think this would go with virus scanners?

Modifying even only a few bytes makes this a totally new binary file and as we know virus scanners are unpredictable. Only after checking with virustotal.com you will know.
amaitland wrote:Is it worth posting your findings on the chromium issue?

Feel free to post any of it on the chromium issue. Knowing alone that this can't be fixed in Chromium source is an useful information.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Pepper flash opens a console window on Windows

Postby Czarek » Tue Jan 12, 2016 5:49 am

In comment #15 in the issue (that resulted in marking as won't fix) it was said that they have no idea where the message is coming from - now at least we know this is hardcoded in the plugin code.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Pepper flash opens a console window on Windows

Postby Tsury » Tue Jan 12, 2016 7:00 am

Why not just make the patch and let us check it with different anti virus programs?
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Pepper flash opens a console window on Windows

Postby amaitland » Tue Jan 12, 2016 7:09 am

For licensing reasons you wouldn't be allowed to distribute the resulting binary. Modifying the binary may have some legal implications.

The technical change is the easy part!
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 107 guests