Hiding the Login Screen

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
SpeedyRoute
Posts: 4
Joined: Wed Oct 16, 2013 12:40 pm

Hiding the Login Screen

Post by SpeedyRoute »

Hello, I did a quick search but didn't find anything. For certain reasons I need to hide Gargoyle on a client router that runs in a motel. The owner doesn't have a clue what a router is and one customer complained saying "gargoyle" is a tracking software. So now the owner wants it changed. Even though Gargoyle has given me the ability to stop some seriously shady activity by some clients, the owner only cares about complaints. So I had to install DD WRT and hide the router specs on the network.

Anyways, I want to use gargoyle without anyone knowing it's gargoyle. Is there a way to hide the login screen and change it to just the generic browser login window prompt? Remove all traces that it is gargoyle, until you login to the admin GUI or CLI?

Thanks,

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Hiding the Login Screen

Post by BashfulBladder »

I don't think a more basic page is in the cards, but that's just me.

What you can do is leverage what exists to meet your goal - if you have a bit of shell skills. You can install for example the Dark One theme which doesn't have the gargoyle picture. You can edit the Dark One common.css style sheet to style out the word 'Gargoyle' by adding to garg_title:

display: none;

If you are on Gargoyle 1.5.11, more options open in changing the text of the page. If you edit /www/i18n/English-EN/ghf.js and change "Gargoyle" there to "Shade os Death Motel", that accomplishes most of the rest. Only by looking at the page source in a browser will you see one instance of "Gargoyle, and a few 'garg_blahblah'.

If you need a more thorough walk through the steps, let me know.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

SpeedyRoute
Posts: 4
Joined: Wed Oct 16, 2013 12:40 pm

Re: Hiding the Login Screen

Post by SpeedyRoute »

I don't have gargoyle installed ATM so I can't check this but I do have pretty good Javascript knowledge. So if I take the User and password JS code from /www/i18n/English-EN/ghf.js and throw that into say a generic HTML page is there a way I can make the HTML doc the default page when someone inputs the router IP?

If that is not possible I guess I could just change the file references the JS file points to like you said.

Thanks for the idea. Not ideal, but better than the default page. I wonder if I could just hack the default gargoyle login to be the same as the DDWRT by using the same JS calls?

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Hiding the Login Screen

Post by BashfulBladder »

ghf.js only holds translation strings. /www/login.sh & /www/js/login.js contain the code for the login page.

I would try /etc/config/httpd_gargoyle
option page_not_found_file 'login.sh'
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

SpeedyRoute
Posts: 4
Joined: Wed Oct 16, 2013 12:40 pm

Re: Hiding the Login Screen

Post by SpeedyRoute »

Ah great, that's what I needed. Thanks.

Going to try this out tomorrow.

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Hiding the Login Screen

Post by BashfulBladder »

This is what you could easily do:
Login.png
Login.png (35.7 KiB) Viewed 8333 times
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

SpeedyRoute
Posts: 4
Joined: Wed Oct 16, 2013 12:40 pm

Re: Hiding the Login Screen

Post by SpeedyRoute »

Yeah, looks good. I was going to swap the Gargoyle logo out with the motel logo. Ideally I though just a basic browser log in pop up would work, but I think this way has much more potential.

Post Reply