Skip to content

Instantly share code, notes, and snippets.

View sundaysec's full-sized avatar
🎯
Focusing

PHILEMON SUNDAY JOEL sundaysec

🎯
Focusing
View GitHub Profile

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@sundaysec
sundaysec / firewall.sh
Created August 5, 2018 08:29
DHCP and DNS server firewall
#!/bin/sh
# Compiled for iptables (any version)
#
# Similar to fw 1, but the firewall is used as DHCP and DNS server for internal network.
# This firewall has two interfaces. Eth0 faces outside and has a dynamic address; eth1 faces inside.
# Policy includes basic rules to permit unrestricted outbound access and anti-spoofing rules. Access to the firewall is permitted only from internal network and only using SSH. The firewall can send DNS queries to servers out on the Internet. Another rule permits DNS queries from internal network to the firewall. Special rules permit DHCP requests from internal network and replies sent by the firewall.