This tutorial will walk you through the steps needed to get root
SSH
access on an Engenius EAP600 dual-band WiFi access point. SSH doesn't
come enabled out of the box on these things, so if you want to SSH into the
device (which is running an old version of OpenWRT), keep reading.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *user_country_name = ""; // [MOD] | |
module_param_named(cn, user_country_name, charp, S_IRUGO); // [MOD] | |
MODULE_PARM_DESC(cn, "Country Name"); // [MOD] | |
static int __ath_regd_init(struct ath_regulatory *reg) | |
{ | |
struct country_code_to_enum_rd *country = NULL; | |
u16 regdmn; | |
if (!reg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/wireless/ath/regd.c | |
+++ b/drivers/net/wireless/ath/regd.c | |
@@ -341,6 +341,10 @@ ath_reg_apply_beaconing_flags(struct wip | |
struct ieee80211_channel *ch; | |
unsigned int i; | |
+#ifdef CONFIG_ATH_USER_REGD | |
+ return; | |
+#endif | |
+ |
My ISP (Time Warner Cable) hands out IPv6 addresses with DHCPv6;
it will delegate a /56 if asked. So long as I keep refreshing the lease,
it won't renumber me. I have my cable modem set to bridge, and do all the
firewalling, NATing, etc., on a Debian box.
In what follows, eth0
is the internal interface.
The dhclient that ships with debian/ubuntu does not support asking for a prefix delegation, so I had to build one from sources.
- Get the ISC dhcp source.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.XCompose | |
### Based on the en_US.UTF locale. ### | |
include "/usr/share/X11/locale/en_US.UTF-8/Compose" | |
### Populated with Kragen's additions. ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
typedef struct {int v;} volume; | |
typedef struct {int s;} onoff; | |
struct settings { | |
int a; | |
char * b; | |
volume v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /etc/ssh/sshd_config.orig 2021-04-10 05:50:44.673514864 +0000 | |
+++ /etc/ssh/sshd_config 2021-04-10 05:59:56.316912290 +0000 | |
@@ -31,7 +31,7 @@ | |
# Authentication: | |
#LoginGraceTime 2m | |
-#PermitRootLogin prohibit-password | |
+PermitRootLogin prohibit-password | |
#StrictModes yes | |
#MaxAuthTries 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"OP_DUP OP_HASH160 20 OP_EQUALVERIFY OP_CHECKSIG": 319721182, | |
"OP_HASH160 20 OP_EQUAL": 10083919, | |
"65 OP_CHECKSIG": 887766, | |
"OP_RETURN": 288521, | |
"OP_1 33 33 33 OP_3 OP_CHECKMULTISIG": 224438, | |
"": 219175, | |
"OP_1 33 33 OP_2 OP_CHECKMULTISIG": 206415, | |
"33 OP_CHECKSIG": 101306, | |
"OP_RETURN 40": 65287, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There used to be something that resembled an Elligator2 implementation here ported from agl's | |
Go code. The implementation is unmaintained and has severe issues (as pointed out in a comment), | |
and should not be used for anything. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get modulus with | |
openssl rsa -noout -modulus -pubin -in public.pub | |
======== maskpriv.py ====== | |
#!/usr/bin/env python | |
import re | |
import sys | |
import gmpy | |
from math import floor, ceil |