Skip to content

Instantly share code, notes, and snippets.

View huyhoang8398's full-sized avatar
🐧
Tux Ta Tux Tax

kn huyhoang8398

🐧
Tux Ta Tux Tax
View GitHub Profile
import socket
import codecs
from struct import *
from stringexec import parseString
import scapy
src = b'\x08\x00\x27\xdd\xd7\x43' # destination MAC address
dst = b'\x08\x00\x27\x8e\x75\x44' # source MAC address
proto = b'\x88\xb5'
ETH_P_ALL = 3
ETH_FRAME_LEN = 1514 # Max. octets in frame sans FCS
import socket
import time
ETH_P_ALL = 3
interface = 'lo'
dst = b'\x08\x00\x27\xdd\xd7\x43' # destination MAC address
src = b'\x08\x00\x27\x8e\x75\x44' # source MAC address
proto = b'\x88\xb5' # ethernet frame type
# print (payload)
# while True:
s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL))
<div id="chartContainer1" style="height: 500px; width: 100%;"></div>
<br/><br/><br/><br/>
<div id="chartContainer2" style="height: 500px; width: 100%;"></div>
<br/><br/><br/><br/>
<div id="chartContainer3" style="height: 500px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<script>
function chart(chartId = "chartContainer1", _data, nameChart) {
console.log(_data)
points = [];
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {box-sizing: border-box}
body {font-family: Verdana, sans-serif; margin:0}
.mySlides {display: none}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
* {box-sizing: border-box}
body {font-family: Verdana, sans-serif; margin:0}
.mySlides {display: none}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
setuid(0);
system("/bin/bash");
return 0;
@huyhoang8398
huyhoang8398 / php-docker-ext
Created January 10, 2023 15:37 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@huyhoang8398
huyhoang8398 / amazon-ec2-ftp.md
Created January 25, 2023 10:08 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@huyhoang8398
huyhoang8398 / nvim-indentation.txt
Created August 16, 2023 11:33 — forked from ericdouglas/super-tip.txt
Change 4 spaces to 2 spaces indentation and change tab to spaces - Vim tip
// 4 spaces to 2 spaces
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g
// Tab to 2 spaces
:%s/\t/ /g