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
interface=wlp2s0 | |
bssid=02:16:3e:24:31:30 | |
driver=nl80211 | |
ssid=<the one SSID> | |
hw_mode=a | |
country_code=DE | |
ieee80211n=1 | |
ieee80211d=1 | |
#channel=6 | |
macaddr_acl=0 |
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
apt-get update && apt-get -y upgrade && apt-get -y autoremove | |
apt-get -y install wireless-tools joe iptables dnsmasq hostapd iw wpa-supplicant pwgen qrencode python-qrcode python-pip | |
pip install pyqrcode | |
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE | |
iptables --append FORWARD --in-interface wlp2s0 -j ACCEPT | |
iptables --append FORWARD --in-interface wlp2s0_0 -j ACCEPT | |
TERM="vt102" | |
apt-get -y install iptables-persistent | |
apt-get clean |
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
#!/bin/bash | |
# Make sure only root can run our script | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
# Generate new wlan password and safe it. Don't use special chars to make it simpler | |
WLANPSK=$(pwgen -1Bv |tr '/' '$') |
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
#!/usr/bin/python | |
import sys | |
import pyqrcode | |
program_name = sys.argv[0] | |
argument = sys.argv[1] | |
url = pyqrcode.create(argument) | |
print(url.terminal(quiet_zone=1)) |
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
#!/bin/bash | |
ssid=$1 | |
mac=$2 | |
RAWPSK=$(pwgen -1Bv |tr '/' '$') | |
ENCODEDPSK=$(wpa_passphrase "${ssid}" "${RAWPSK}" |grep psk|tail -n 1|cut -d '=' -f 2) | |
echo $mac $ssid $RAWPSK $ENCODEDPSK | |
# Generate QR code pictures for Android and Windows | |
qrencode -t PNG -o /tmp/android_${mac}.png -s 4 "WIFI:T:WPA;S:${ssid};P:${RAWPSK};H:${hidden};" | |
./terminalqr.py "WIFI:T:WPA;S:${ssid};P:${RAWPSK};H:${hidden};" >/tmp/android_${mac}.txt |
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
#!/bin/bash | |
apt-get update && apt-get -y upgrade | |
apt-get install git git-core cmake libusb-1.0-0-dev build-essential usbutils pkg-config joe mono-complete wget | |
lsusb | |
git clone git://git.osmocom.org/rtl-sdr.git | |
cd rtl-sdr | |
mkdir build | |
cd build | |
cmake ../ -DINSTALL_UDEV_RULES=ON | |
make install |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<InstallerSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<WebServerPort>8090</WebServerPort> | |
</InstallerSettings> |
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
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
</configSections> | |
<startup> | |
<supportedRuntime version="v2.0.50727"/> | |
</startup> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> |
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
before_script: | |
- echo 'New job started' | |
after_script: | |
- echo 'Job finished' | |
stages: | |
- clean | |
- build-processors | |
- generate-algorithms | |
- generate-util | |
- generate-other-sources |
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
package de.elbosso.util; | |
//This is by no means production-ready code! | |
/*Copyright (c) 2012-2018. | |
Juergen Key. Alle Rechte vorbehalten. | |
Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form, | |
mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig: | |
1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright, | |
die Liste der Bedingungen und den folgenden Haftungsausschluss im Quelltext |