All public logs
Combined display of all available logs of PedrosBrainDump. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 07:49, 29 January 2025 413vhcu1lq0463ob talk contribs created page Linux Save Terminal Output to a File While Working (Created page with "You can use the command script To save all your terminal output to a file until you type exit.") Tag: Visual edit
- 07:38, 29 January 2025 413vhcu1lq0463ob talk contribs created page Linux Checkup Script (Created page with "echo 'hostname' hostname echo '' echo 'date' date echo '' echo 'df -h' df -h echo '' echo 'df -i' df -i echo '' echo 'uptime' uptime echo '' echo 'apt list --installed' apt list --installed echo '' echo 'ps auxfww' ps auxfww echo '' echo 'iptables-save' iptables-save echo '' echo 'ip a' ip a echo '' echo 'ss -tuln' ss -tuln echo '' echo 'cat /proc/loadavg' cat /proc/loadavg echo '' echo 'free -h' free -h echo ''") Tag: Visual edit: Switched
- 13:12, 24 January 2025 413vhcu1lq0463ob talk contribs created page Internal Ranges For Use Internally (Created page with "For internal networks, the private IP address ranges specified by <nowiki>RFC 1918</nowiki> are typically used. These ranges are reserved for private use, meaning they are not routed on the public internet. The three main private IP address ranges you can use for internal networks are: # '''Class A''': #* Range: <code>10.0.0.0</code> to <code>10.255.255.255</code> #* Subnet mask: <code>255.0.0.0</code> (or <code>/8</code>) # '''Class B''': #* Range: <code>172.16.0.0</co...") Tag: Visual edit
- 13:12, 24 January 2025 413vhcu1lq0463ob talk contribs created page Networking (Created page with "* Internal Ranges For Use Internally") Tag: Visual edit
- 09:40, 7 January 2025 413vhcu1lq0463ob talk contribs created page Redirect stdout and stderr (Created page with "To redirect a stderr and stdout to a file you can send the stderr to the stdin and write the stdin into a file.<blockquote>command > outputfile 2>&1</blockquote>") Tag: Visual edit
- 20:43, 1 January 2025 413vhcu1lq0463ob talk contribs created page Python TTS (Text To Speech) with AWS Polly (Created page with " # importing libs import boto3 import logging # Initialize the Polly client polly_client = boto3.client('polly') def awsPollyTTS(input_text, output_file_name="output.mp3", voice_id='Joanna', output_format='mp3'): try: # Request speech synthesis from AWS Polly response = polly_client.synthesize_speech( Text=text, VoiceId=voice_id, OutputFormat=output_format, SampleRate='22050' )...") Tag: Visual edit: Switched
- 11:35, 24 December 2024 413vhcu1lq0463ob talk contribs created page Crypto (Created page with "* CoinMarketCap API usage") Tag: Visual edit
- 09:40, 11 December 2024 413vhcu1lq0463ob talk contribs created page Docker file example (Created page with " # Use a python image FROM python:3.9-slim # Define the workdir inside the container WORKDIR /app # Copy the files from local workdir to conainter workdir COPY . . # Install dependencies requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose Flask application port EXPOSE 5000 # Command to run the application CMD ["python", "app.py"]") Tag: Visual edit
- 00:26, 16 November 2024 413vhcu1lq0463ob talk contribs created page ProxMox Advanced Course (Created page with "== Importing disks images from other virtualizers == qm importdisk <vm id> <disk image> <storage pool> (e.g.) qm importdisk 101 disk.vhd local") Tag: Visual edit
- 05:11, 14 November 2024 413vhcu1lq0463ob talk contribs created page MarkDown (Created page with "markdown basic syntax : https://www.markdownguide.org/basic-syntax/ markdown extended syntax : https://www.markdownguide.org/extended-syntax/ here is the idea, make a markdown to html compiler.") Tag: Visual edit
- 03:15, 10 November 2024 413vhcu1lq0463ob talk contribs created page Jinja2 (Created page with "== Check a pattern on a string == === Check by a pattern on the beginning of a string === {% if my_string.startswith('pattern') %}{% endif %} {% if my_string[:len('pattern')] == 'pattern' %}{% endif %} === Check by a pattern on the end of a string === === Check by a pattern into a string ===") Tag: Visual edit
- 02:48, 8 November 2024 413vhcu1lq0463ob talk contribs created page Sha sum files with Python (Created page with " import hashlib def calculate_sha256(file_path): sha256_hash = hashlib.sha256() with open(file_path, "rb") as f: # Read and update hash string value in chunks of 4K for byte_block in iter(lambda: f.read(4096), b""): sha256_hash.update(byte_block) return sha256_hash.hexdigest() # Usage file_path = "path/to/your/file" print("SHA-256:", calculate_sha256(file_path))") Tag: Visual edit
- 16:03, 7 November 2024 413vhcu1lq0463ob talk contribs created page Linux Password Less Authentication (rsa key file) (Created page with "=== '''Generate the SSH key pair on your local machine''' (the one you want to connect from): === ssh-keygen -t rsa -b 4096 -f ~/.ssh/username * <code>-t rsa</code>: Specifies the RSA algorithm (you can also use <code>ed25519</code> for better security). * <code>-b 4096</code>: Sets the key size (4096 bits for RSA). * <code>-f ~/.ssh/username</code>: This option lets you set the filename and path for the key. Here, it will save the private key as <code>~/.ssh/username<...") Tag: Visual edit
- 17:24, 5 November 2024 413vhcu1lq0463ob talk contribs created page Adding app on gnome menu (Created page with "create myapp.desktop file nano ~/.local/share/applications/myapp.desktop Write all the configurations [Desktop Entry] Version=1.0 Name=MyApp Comment=This is my custom app Exec=/path/to/your/binary Icon=/path/to/your/icon.png Terminal=false Type=Application Categories=Utility;Application; * <code>Version</code>: (Optional) Specifies the version of the desktop entry format. * <code>Name</code>: The name of your application that will appear in the GNOME menu....") Tag: Visual edit
- 18:13, 4 November 2024 413vhcu1lq0463ob talk contribs created page Vim Cheat Sheet (Created page with " == Global == * <kbd>:h[elp] keyword</kbd> - open help for keyword * <kbd>:sav[eas] file</kbd> - save file as * <kbd>:clo[se]</kbd> - close current pane * <kbd>:ter[minal]</kbd> - open a terminal window * <kbd>K</kbd> - open man page for word under the cursor '''Tip''' Run <kbd>vimtutor</kbd> in a terminal to learn the first Vim commands. == Cursor movement == * <kbd>h</kbd> - move cursor left * <kbd>j</kbd> - move cursor down * <kbd>k</kbd> - move cursor up * <kbd>l...") Tag: Visual edit
- 14:38, 30 October 2024 413vhcu1lq0463ob talk contribs created page SSH Tunnel (Created page with "To expose a local port so that it is accessible remotely, use the following command: ssh -R [remote_port]:localhost:[local_port] [user]@[ssh_host] To listen locally for a remote port, use this command: ssh -L [local_port]:[remote_host]:[remote_port] [user]@[ssh_host] * -N no remote command to execute, will not show the shell") Tag: Visual edit
- 00:09, 22 October 2024 413vhcu1lq0463ob talk contribs created page Just a place to store all my certifications (Created page with "*Introdução ao Pentest na PráticaIntrodução ao Pentest na Prática *C1 Avanced English LevelC1 Avanced English Level *Ultimate Rust Crash CourseUltimate Rust Crash Course *Docker Mastery: with Kubernetes +Swarm from a Docker CaptainDocker Mastery: with Kubernetes +Swarm from a Docker Captain *SharePointSharePoint *Lei Geral de Proteção de DadosLei Geral de Proteção de Dados *DevOps in the Cloud with Terraform, Ansible, and JenkinsDevOps in the Cloud with Terrafo...") Tag: Visual edit
- 21:47, 18 October 2024 413vhcu1lq0463ob talk contribs created page Kubernetes (Created page with "K3s install curl -sfL <nowiki>https://get.k3s.io</nowiki> | K3S_KUBECONFIG_MODE="644" sh -s - Adding node to the cluster get the token from the master with cat /var/lib/rancher/k3s/server/node-token then to install run curl -sfL <nowiki>https://get.k3s.io</nowiki> | K3S_TOKEN="YOUR TOKEN" K3S_URL="<nowiki>https://yourserver:6443</nowiki>" K3S_NODE_NAME="servername" sh -s -") Tag: Visual edit
- 17:27, 15 October 2024 413vhcu1lq0463ob talk contribs created page RedHat OpenShift (Created page with "== Users == === User types === * regular: regular users are normal users such as developers and people who manages the cluster (e.g. developer) * system: system users are users that are created on each node and have the prefix system: (e.g. system:admin, system:master) * service: service users are users that are created to allow the communication between services with the prefix system:serviceaccount (e.g. system:serviceaccount:user) === Oauth Server === ==== Modes...") Tag: Visual edit
- 19:57, 14 October 2024 413vhcu1lq0463ob talk contribs created page The Generic Communication Protocol (Created page with "Just a generic protocol that transfers data pont to pont using just some things version: vX.X.X size: 0-2^24 data: top of 16M") Tag: Visual edit
- 18:24, 14 October 2024 413vhcu1lq0463ob talk contribs created page QR Code (Created page with "The number of letters a QR code can store depends on the QR code version, the error correction level, and the encoding mode. The four encoding modes are: # '''Numeric Mode''': Only digits (0-9) # '''Alphanumeric Mode''': Letters (A-Z), digits (0-9), and nine special characters (<code>space</code>, <code>$</code>, <code>%</code>, <code>*</code>, <code>+</code>, <code>-</code>, <code>.</code>, <code>/</code>, <code>:</code>) # '''Binary Mode''': Any byte of data (e.g., AS...") Tag: Visual edit
- 23:11, 13 October 2024 413vhcu1lq0463ob talk contribs created page My AI local config with docker compose Ollama with OpenWebUI (Created page with " services: ollama: volumes: - /docker/ollama-openwebui/data/ollama:/root/.ollama container_name: ollama pull_policy: always tty: true restart: unless-stopped image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest} open-webui: build: context: . args: OLLAMA_BASE_URL: '/ollama' dockerfile: Dockerfile image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main} container_name: open-webui...") Tag: Visual edit: Switched
- 23:10, 13 October 2024 413vhcu1lq0463ob talk contribs created page AI - Artificial Inteligence (Created page with "== Stuffs == * My AI local config with docker compose Ollama with OpenWebUI") Tag: Visual edit
- 18:15, 13 October 2024 413vhcu1lq0463ob talk contribs created page Pedro's Fedora Linux setup (Created page with " # CYBER SEC STUFF sudo dnf update -y sudo dnf install hydra gobuster wafw00f whatweb golang git wfuzz snapd -y snap install seclists sqlmap hash-id cd /tmp git clone https://github.com/tomnomnom/hacks.git cd hacks/html-tool go build -o html-tool main.go sudo cp html-tool /usr/local/bin cd /tmp git clone https://github.com/003random/getJS.git cd getJS go build -o getJS main.go sudo cp getJS /usr/local/bin curl -L -o burp_community_2024.8.4_linux.sh "https:/...") Tag: Visual edit: Switched
- 18:51, 12 October 2024 413vhcu1lq0463ob talk contribs created page Compiling Python code (Created page with " pip install pyinstaller pyinstaller --onefile script.py") Tag: Visual edit
- 16:35, 12 October 2024 413vhcu1lq0463ob talk contribs created page Hack The Box - Windows Fundamentals - course notes (Created page with "=== Windows Versions === {| class="wikitable" !Operating System Names !Version Number |- |Windows NT 4 |4.0 |- |Windows 2000 |5.0 |- |Windows XP |5.1 |- |Windows Server 2003, 2003 R2 |5.2 |- |Windows Vista, Server 2008 |6.0 |- |Windows 7, Server 2008 R2 |6.1 |- |Windows 8, Server 2012 |6.2 |- |Windows 8.1, Server 2012 R2 |6.3 |- |Windows 10, Server 2016, Server 2019 |10.0 |} === Command Get-WmiObject === We can use the Get-WmiObject to find information about the operati...") Tag: Visual edit
- 16:06, 12 October 2024 413vhcu1lq0463ob talk contribs created page Windows (Created page with "== Stuffs == * Hack The Box - Windows Fundamentals - course notes") Tag: Visual edit
- 02:03, 12 October 2024 413vhcu1lq0463ob talk contribs created page Base64 file encode and decode with Python (Created page with "Encode code import base64 input_file_path = input('Input file > ') output_file_path = input('Output file > ') with open(input_file_path, 'rb') as file: file_data = file.read() encoded_data = base64.b64encode(file_data) with open(output_file_path, 'wb') as output_file: output_file.write(encoded_data) Decode code import base64 input_file_path = input('Input file > ') output_file_path = input('Output file > ') with open(input_file_path, 'r...") Tag: Visual edit
- 17:48, 10 October 2024 413vhcu1lq0463ob talk contribs created page Local OS monitoring client with Python (Created page with "This script monitores: * CPU usage (percent) * RAM usage (percent) * Swap usage (percent) * Root disk usage (percent) It's all saved on a CSV file named 'consume-metrics-YEAR-MONTH-DAY.csv' the csv structure is: year-month-day,hout:minute:second,cpu usage,ram usage,swap usage,root disk usage Here is the script import psutil import datetime import time while True: momment = datetime.datetime.now() year = momment.year month = momment.month day...") Tag: Visual edit
- 17:32, 10 October 2024 413vhcu1lq0463ob talk contribs created page Linux system information gathering (Created page with "Save your linux configurations before making a change is important for at least 2 reasons: * If something goes wrong you can restore with the data collected * If something goes wrong but not related to what you did, you'll need prof of this (trust me this happens) My script: echo 'cat /etc/*release' cat /etc/*release echo echo echo 'df -h' df -h echo echo echo 'ip a' ip a echo echo echo 'ps -ef' ps -ef echo echo echo 'netstat -nr' net...") Tag: Visual edit
- 12:40, 10 October 2024 413vhcu1lq0463ob talk contribs deleted page Auto mounting drives on boot (content before blanking was: "== /etc/fstab == The /etc/fstab is used to configure all mounting file system on Linux, with this file we can configure the mounting of SWAP, local blocks and nfs. === File architecture === origin destiny type options dump-option check-option === Mounting SWAP === /swapfile none swap sw 0 0 === Mounting local blocks === /dev/myvg/mylv /mnt ext4 defaults 0 0 === Mounting remote smb shares === //remote_host/sharename /mnt/cifs-share cifs username=user,pas...")
- 12:40, 10 October 2024 413vhcu1lq0463ob talk contribs deleted page Mount Remote FSs (content before blanking was: "Mount authenticated sudo mount -t cifs //SERVER_NAME/path local -o username=your_username,password=your_password fstab //SERVER_NAME/path local cifs username=your_username,password=your_password,iocharset=utf8,sec=ntlm 0 0 Mount not authenticated sudo mount -t cifs //SERVER_NAME/path local -o guest fstab //SERVER_NAME/path local cifs guest,iocharset=utf8 0 0")
- 12:38, 10 October 2024 413vhcu1lq0463ob talk contribs created page Linux FS Mount (Created page with "== /etc/fstab == The /etc/fstab is used to configure all mounting file system on Linux, with this file we can configure the mounting of SWAP, local blocks and nfs. === File architecture === origin destiny type options dump-option check-option === Mounting SWAP === /swapfile none swap sw 0 0 === Mounting local blocks === /dev/myvg/mylv /mnt ext4 defaults 0 0 === Mounting remote smb shares === //remote_host/sharename /mnt/cifs-share cifs username=user,password=pas...")
- 13:27, 8 October 2024 413vhcu1lq0463ob talk contribs created page File:78euztl3zu7q.png
- 13:27, 8 October 2024 413vhcu1lq0463ob talk contribs uploaded File:78euztl3zu7q.png
- 13:07, 8 October 2024 413vhcu1lq0463ob talk contribs created page UDEMY - TOTAL: CompTIA Security+ Certification (SY0-601) - course notes (Created page with "== Defining risk == *Asset: An asset is any critical resource used to generate value, such as important data or key personnel within a team. *Likelihood: This refers to the probability of an event occurring over time, such as potential disruptions to your infrastructure. *Threat Actors: Entities or individuals that may cause harm to your infrastructure. Key types include: ** Hackers: Individuals who exploit vulnerabilities to gain unauthorized access. ** Hacktivists: Ha...") Tag: Visual edit: Switched
- 23:13, 7 October 2024 413vhcu1lq0463ob talk contribs moved page Introduction to Pentest in Practice course notes to DESEC Security - Introduction to Pentest in Practice - course notes
- 23:11, 7 October 2024 413vhcu1lq0463ob talk contribs created page Introduction to Pentest in Practice course notes (Created page with "== Mapping host == === Mapping open ports on host === nmap -D RND:20 --open -sS --top-ports=100 domain.com -oN open-ports.file * nmap - the comand * -D RND:20 - will generate 20 random IPs to send the request, to try to mask the requests if there is a inteligent firewall on the other side. * --open - to get open ports * -sS - SYN scan the target responds with a '''SYN-ACK''' packet (acknowledging the connection) * --top-ports=100 - list the top 100 ports * domain.com...")
- 23:09, 7 October 2024 413vhcu1lq0463ob talk contribs created page Building a RHEL like environment to cybersec (Created page with " sudo dnf update -y sudo dnf install hydra gobuster wafw00f whatweb golang git seclists wfuzz sqlmap hash-identifier -y cd /tmp git clone https://github.com/tomnomnom/hacks.git cd hacks/html-tool go build -o html-tool main.go sudo cp html-tool /usr/local/bin cd /tmp git clone https://github.com/003random/getJS.git cd getJS go build -o getJS main.go sudo cp getJS /usr/local/bin wget https://files.pedromussato.com/programs/burpsuite_community_linux_v2024_8_2.sh...") Tag: Visual edit: Switched
- 17:22, 7 October 2024 413vhcu1lq0463ob talk contribs created page File:7d15h6sq7co9.png
- 17:22, 7 October 2024 413vhcu1lq0463ob talk contribs uploaded File:7d15h6sq7co9.png
- 17:20, 7 October 2024 413vhcu1lq0463ob talk contribs created page File:00qis0u551qa.png
- 17:20, 7 October 2024 413vhcu1lq0463ob talk contribs uploaded File:00qis0u551qa.png
- 17:19, 7 October 2024 413vhcu1lq0463ob talk contribs created page File:7u4v05v33rgj.png
- 17:19, 7 October 2024 413vhcu1lq0463ob talk contribs uploaded File:7u4v05v33rgj.png
- 17:15, 7 October 2024 413vhcu1lq0463ob talk contribs created page File:3r0wf0wnn7ce.png
- 17:15, 7 October 2024 413vhcu1lq0463ob talk contribs uploaded File:3r0wf0wnn7ce.png
- 23:16, 6 October 2024 413vhcu1lq0463ob talk contribs created page CyberSec (Created page with " == Building a RHEL like env == dnf update -y dnf install hydra gobuster wafw00f whatweb golang git -y git clone https://github.com/tomnomnom/hacks.git cd hacks/html-tool go build -o html-tool main.go cp html-tool /usr/local/bin wget https://files.pedromussato.com/programs/burpsuite_community_linux_v2024_8_2.sh chmod +x burpsuite_community_linux_v2024_8_2.sh ./burpsuite_community_linux_v2024_8_2.sh == Mapping host == === Mapping open ports on host === nmap -D...") Tag: Visual edit
- 23:15, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Fjhxfyxkbpslkuy.png
- 23:15, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Fjhxfyxkbpslkuy.png