Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Hiden way to open chrome with cmd

How can i open a html /javascript code in chrome with cmd in hidden way
Writeln('Give me a Target >');
[Image: giphy.gif]
(Oct 24, 2018 11:56 AM)blackcoder00 Wrote:  How can i open a html /javascript code in chrome with cmd in hidden way


If you want to open a Website in the internet, then use e.g

start chrome h t t p : / / google . com
                       
                        the URL should be together, but HF dont let me Post links and others sources, coz I don't have more than 50 Posts  😟

But if you want to open a local html file, then you must give him the full Path where your html file is.

Example:

start chrome file : / / C:Users/Peter/htmlfile/test. html
                       
                        here have to be the file URL together

But unfortunately, its not hidden the chrome browser.

Hopefully I could help you a little.   🙂

Good luck.  👍
(Oct 25, 2018 11:46 PM)M e l l o Wrote:  If you want to open a Website in the internet, then use e.g

start chrome h t t p : / / google . com
                       
                        the URL should be together, but HF dont let me Post links and others sources, coz I don't have more than 50 Posts  😟

But if you want to open a local html file, then you must give him the full Path where your html file is.

Example:

start chrome file : / / C:Users/Peter/htmlfile/test. html
                       
                        here have to be the file URL together

But unfortunately, its not hidden the chrome browser.

Hopefully I could help you a little.   🙂

Good luck.  👍
yeah i know how to start but the problem i want my script to be executed in a hidden way
PHP Code

<?php 
comand 
:='C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --app=http://127.0.0.1/a.html'; 
Writeln('Give me a Target >');
[Image: giphy.gif]
https://www.experts-exchange.com/questio...indow.html

Use this basic idea to try and launch chrome silently, I do not know if it will work all the same but its worth a shot.

Good luck 🤝

edit:
So, create a file like "file.vbs" with this inside:
Code
Dim objShell
Set objShell = WScript.CreateObject ("WScript.shell")
objShell.run """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"" --app=http://127.0.0.1/a.html", 0
Set objShell = Nothing

edit edit: tested, and doesn't hide the window.. Ill try to find you some other solution.

edit edit edit: read up on: https://winaero.com/blog/run-a-program-h...indows-10/
it seems very possible to do in firefox, but not chrome (at least from my testing)
You should be able to use chrome in headless mode by passing '--headless' to chrome.
It also from my quick look, '--disable-gpu' is needed due to a bug. Issue number 737678.

Example
Code
chrome --headless --disable-gpu ${URL}


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by pakalupapitoNov 29, 2015 04:19 AM 16 482 Nov 29, 2015 04:19 AM
Last Post: He B TeMy
[C] by 570703Sep 8, 2015 03:01 AM 4 204 Sep 8, 2015 03:01 AM
Last Post: 570703
[Shell] by BLVCKごdMar 2, 2015 01:21 PM 5 362 Mar 2, 2015 01:21 PM
Last Post: Conphuse