Keygen subsystem
This commit is contained in:
parent
951601b831
commit
5e2b5059fc
4
build.sh
4
build.sh
@ -8,7 +8,9 @@ mkdir -p target/overlay/var/www/html
|
||||
echo "[+] Cloning buildroot"
|
||||
git clone https://github.com/buildroot/buildroot.git target/buildroot
|
||||
echo "[+] Building the keygen"
|
||||
|
||||
mkdir -p conf/usr/sbin
|
||||
gcc -o conf/usr/sbin/cfgbin keygen/keygen.c
|
||||
strip conf/usr/sbin/cfgbin
|
||||
echo "[+] Adding customization files"
|
||||
cp -R buildroot/* target/buildroot # copy buildroot configs
|
||||
cp -R conf/* target/overlay # copy target system config files
|
||||
|
@ -3,12 +3,12 @@ hw_mode=g
|
||||
channel=1
|
||||
wmm_enabled=1
|
||||
|
||||
ssid=Challenge-A2D0
|
||||
ssid={{SSID}}
|
||||
auth_algs=1
|
||||
wpa=2
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
rsn_pairwise=CCMP
|
||||
wpa_passphrase=somepassword
|
||||
wpa_passphrase={{WPA}}
|
||||
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
|
||||
|
||||
ctrl_interface=/var/run/hostapd
|
||||
|
20
conf/etc/init.d/S10cfgbin
Normal file
20
conf/etc/init.d/S10cfgbin
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting cfgbin: "
|
||||
/usr/sbin/cfgbin
|
||||
test -f /etc/serial || exit 0
|
||||
test -f /etc/ssid || exit 0
|
||||
test -f /etc/wpa || exit 0
|
||||
$SSID=`cat /etc/ssid`
|
||||
$WPA=`cat /etc/wpa`
|
||||
sed -i "s/{{SSID}}/$SSID/g" /etc/hostapd.conf
|
||||
sed -i "s/{{WPA}}/$WPA/g" /etc/hostapd.conf
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
@ -5,7 +5,7 @@
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// md5 da rosettacode
|
||||
|
||||
typedef union uwb
|
||||
{
|
||||
unsigned w;
|
||||
@ -235,9 +235,6 @@ int gen_key(char *serial, char *mac)
|
||||
}
|
||||
}
|
||||
|
||||
printf("%s\n", md5a);
|
||||
printf("%s\n", md5b);
|
||||
|
||||
strncpy(wstr, md5a, 8);
|
||||
strncpy(xstr, md5a + 8, 8);
|
||||
strncpy(ystr, md5a + 16, 8);
|
||||
|
@ -44,7 +44,7 @@ require_once("includes/nav.php");
|
||||
<pre>
|
||||
<?php echo $leases ?>
|
||||
</pre>
|
||||
<? /*
|
||||
<?php /*
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user