This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - main | |
| name: π Deploy website on push | |
| jobs: | |
| web-deploy: | |
| name: π Deploy | |
| runs-on: ubuntu-latest |
This file contains hidden or 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
| const server = app.listen(port, () => { | |
| console.log(" Hello, chat box"); | |
| }); | |
| const { Server } = require("socket.io"); | |
| const io = new Server(server); | |
| io.on("connection", (socket) => { | |
| console.log("Connected"); | |
| socket.on("chatMessage", (data) => { |
This file contains hidden or 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
| from multiprocessing import Process | |
| from scapy.all import (ARP, Ether, conf, get_if_hwaddr, | |
| send, sniff, sndrcv, srp, wrpcap) | |
| import os | |
| import sys | |
| import time | |
| def get_mac(targetip): | |
| packet = Ether(dst='ff:ff:ff:ff:ff:ff')/ARP(op="who-has", pdst=targetip) |
This file contains hidden or 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
| import ipaddress | |
| import os | |
| import socket | |
| import struct | |
| import sys | |
| import threading | |
| import time | |
| SUBNET = '192.168.1.0/24' | |
| MESSAGE = 'PYTHONRULES!' |
This file contains hidden or 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
| import argparse | |
| import socket | |
| import shlex | |
| import subprocess | |
| import sys | |
| import textwrap | |
| import threading | |
| def execute(cmd): |