Skip to content

Instantly share code, notes, and snippets.

@leonidx86
leonidx86 / pppoe_capture_creds.sh
Last active October 3, 2020 15:35
HOWTO: Capture PPPoE credentials on Linux host
#!/bin/sh
# HOWTO: Capture PPPoE credentials on Linux host.
# Capture PPPoE username and password from router (or any client) on Linux host.
# For cases when the ISP provides locked down router that does not reveal creds.
# Remember to replace interface name according to your system.
# Execute the script, then connect the router WAN port to your PC ethernet port.
# Wait for captured creds, then stop with CTRL-C
@leonidx86
leonidx86 / startpage-opensearch-post.xml
Last active October 3, 2020 15:33
HOWTO: StartPage OpenSearch with POST
<!--
StartPage allows searching using POST query from their main page for increased provacy. But their opensearch.xml file resorts to GET, which results in searches from browser search bar to include queries in the URL.
This updated XML will make the browser to send search requests using POST.
Uncomment the param "prf", and set the value to your generated settings value for prf, in order to include your settings in private window searches.
Search suggestions were removed, since they work only with GET, which defeats the whole purpose.
To load this into Firefox, you can use local HTTP server and issue the following command in browser console (change the URL appropriately:
window.external.AddSearchProvider("http://localhost:8000/startpage-post-opensearch.xml");
-->