Skip to content

Instantly share code, notes, and snippets.

View maheshbasnet089's full-sized avatar
💭
In love with MOMO

Manish Basnet maheshbasnet089

💭
In love with MOMO
View GitHub Profile
@maheshbasnet089
maheshbasnet089 / main.yml
Created November 10, 2023 06:03
SamkirLand Ftp Node
on:
push:
branches:
- main
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
@maheshbasnet089
maheshbasnet089 / app.js
Created July 13, 2023 14:08
socketIoSimpleChat
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) => {
@maheshbasnet089
maheshbasnet089 / arper.py
Created July 19, 2022 01:39
Packet sniffing Script in python
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)
@maheshbasnet089
maheshbasnet089 / scanner.py
Created July 16, 2022 16:57
It can be used to scan the hosts connected on your network in a short period of time .
import ipaddress
import os
import socket
import struct
import sys
import threading
import time
SUBNET = '192.168.1.0/24'
MESSAGE = 'PYTHONRULES!'
@maheshbasnet089
maheshbasnet089 / netCat.py
Last active July 16, 2022 02:18
This is the implementation of NetCat in python which has many functionalities of NetCat like server connect, remote command shell, files uploads,command execution,echo text . In a place where there is no NetCat in system , this python code can be very handful.
import argparse
import socket
import shlex
import subprocess
import sys
import textwrap
import threading
def execute(cmd):