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 | |
httrack https://www.yourwebsite.com -i -O "/Users/ahmet.ozer/websites/yourwebsite" \ | |
"*yourwebsite.com*" "-*wp-json*" "-*replytocom*" "-*p=*" "-*/feed*" \ | |
--connection-per-second=50 --sockets=80 --keep-alive --display --verbose \ | |
--advanced-progressinfo --disable-security-limits -s0 -o0 \ | |
-F 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36' \ | |
--max-rate=0 --cache 1 --do-not-recatch --purge-old 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 json | |
f = open('event.json') | |
data = json.load(f) | |
actions = {} | |
for i in data['Records']: | |
service=i["eventSource"].split(".")[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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"log" | |
"math/big" |
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/sh | |
function updateDate { | |
date -s"@$(curl ahmetozer.org/cdn-cgi/tracert -s | grep ts= | cut -d"=" -f2 | cut -d"." -f1)" | |
if [ "$?" == "0" ] | |
then | |
updated="true" | |
fi | |
} | |
if [ "$1" == "service" ] || [ "true" == "$service" ] |
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 | |
rm /lib/systemd/system/serial-getty\@.service |
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
#!/usr/bin/env bash | |
pipe_loc="/tmp/telnet1" | |
if [ ! -p $pipe_loc ]; then | |
mkfifo $pipe_loc | |
fi | |
tail -f $pipe_loc | telnet 10.0.0.3 23 & | |
PID1=$! |
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 links = document.getElementsByTagName("a"); | |
document.head.insertAdjacentHTML("beforeend", `<style>@keyframes intraT { 50% { opacity: 0; }}</style>`) | |
for (var i = 0; i < links.length; i++) { | |
let temp_url = "" | |
try { | |
temp_url = new URL(links[i].href); | |
} catch(err) { | |
temp_url = "err" | |
} | |
if (temp_url != "err") { |
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 | |
#### | |
# ahmetozer.org | |
#### | |
## Usage | |
# ./udp_test_package_loop.sh (send-interval) (remote-ip) (remote-port|default 53) (source-port|default 9000) | |
function fakeReq { |
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 | |
# Mesh Topology with Namespace | |
# Graph | |
NAMESPACE_COUNT=3 | |
### | |
# ! I recommend to run this script in temporary container. | |
# docker run -it --rm --privileged ahmetozer/cna | |
# in container curl https://gist.githubusercontent.com/ahmetozer/d01538327a98ed70cf04e48e89fe8c31/raw/mesh-topology-example.sh -o mesh-topology-example.sh ; chmod +x mesh-topology-example.sh | |
### |
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
String.prototype.inikv = function (regxy) { | |
const myRegexp = RegExp("^(?:"+regxy+")=(.*)$","gm"); | |
let match = myRegexp.exec(this); | |
if (match != null) { | |
return match[1] | |
} | |
return null | |
} |
NewerOlder