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).
- 13:14, 28 October 2025 413vhcu1lq0463ob talk contribs created page File:C70d04dd-456a-4b6b-a266-96aa9907905e.png
- 13:14, 28 October 2025 413vhcu1lq0463ob talk contribs uploaded File:C70d04dd-456a-4b6b-a266-96aa9907905e.png
- 13:13, 28 October 2025 413vhcu1lq0463ob talk contribs created page File:D49751ac-9ff1-404d-a192-c0b816c096ef.png
- 13:13, 28 October 2025 413vhcu1lq0463ob talk contribs uploaded File:D49751ac-9ff1-404d-a192-c0b816c096ef.png
- 13:11, 28 October 2025 413vhcu1lq0463ob talk contribs created page File:E562700e-20ce-412f-9f87-5b90247f60ae.png
- 13:11, 28 October 2025 413vhcu1lq0463ob talk contribs uploaded File:E562700e-20ce-412f-9f87-5b90247f60ae.png
- 11:52, 18 October 2025 413vhcu1lq0463ob talk contribs created page Create DHCP server on Ubuntu (Created page with "== 1. Install the DHCP Server == <code>sudo apt update sudo apt install isc-dhcp-server -y</code> ---- == 2. Set the network interface == Edit the default configuration file: <code>sudo nano /etc/default/isc-dhcp-server</code> Find this line: <code>INTERFACESv4=""</code> And replace it with your actual network interface (for example <code>eth0</code>, <code>ens33</code>, or <code>enp0s3</code>): <code>INTERFACESv4="eth0"</code> == 3. Configure the DHCP scope == Ed...") Tag: Visual edit
- 20:22, 6 February 2025 413vhcu1lq0463ob talk contribs created page Wanna help? (Created page with "If you happened to like the things I write here and think that you would like to help in some way here is how you can for now : [https://buymeacoffee.com/pedromussato buymeacoffee]") Tag: Visual edit
- 11:17, 6 February 2025 413vhcu1lq0463ob talk contribs created page Convert date to timestamp and timestamp to date in Python (Created page with "Date to timestamp from datetime import datetime # Date date = datetime(2025, 2, 6) # Example date (Year, Month, Day) # Convert to timestamp timestamp = date.timestamp() print(timestamp) Timestamp to date from datetime import datetime # Timestamp timestamp = 1615931732 # Example timestamp # Convert to date date = datetime.utcfromtimestamp(timestamp).date() print(date)") Tag: Visual edit
- 14:41, 4 February 2025 413vhcu1lq0463ob talk contribs created page Use wireshark remotelly on another host and the UI locally (Created page with "to use wireshark remotelly and the UI locally first you need to have wireshark installed and then create a command (bin/rwireshark) with this content: <nowiki>#</nowiki>!/bin/bash HOST=$1 shift TCPDUMP_ARGS=$@ wireshark -i <(ssh "$HOST" sudo tcpdump -s 0 -U -n -w - $TCPDUMP_ARGS) to use basically you can do the following: rwireshark [hostname/ip] [other tcpdump parameters]") Tag: Visual edit
- 13:26, 4 February 2025 413vhcu1lq0463ob talk contribs created page Allow remote connections on PostgreSQL (Created page with " To configure PostgreSQL to accept connections from hosts other than <code>localhost</code>, you'll need to modify two files: # '''<code>postgresql.conf</code>''': This file controls various settings related to the PostgreSQL server. # '''<code>pg_hba.conf</code>''': This file controls client authentication and permissions (if not configured properly the PostgreSQL instance will accept unauthenticated connections). Here’s how you can configure both: === Edit <code>p...") Tag: Visual edit
- 12:45, 4 February 2025 413vhcu1lq0463ob talk contribs created page Create a user on PostgreSQL (Created page with "To create an user on a PostgreSQL database you can use: CREATE USER new_user WITH PASSWORD 'password'; To guarantee full access on a database you can: GRANT ALL PRIVILEGES ON DATABASE database_name TO new_user; Also to allow the user to connect on the database you need to: GRANT CONNECT ON DATABASE database_name TO new_user; If you want the user to have full access to all tables, sequences, and other objects in the database, you can use: \c database_name -- To con...") Tag: Visual edit
- 13:43, 3 February 2025 413vhcu1lq0463ob talk contribs created page Chef configuration manager : cookbook promotion (Created page with "promote cookbook knife spork promote ENVIRONMENT --remote REMOTE push changes git push origin main search for the nodes knife search node 'role:ROLE' -i run chef client on all nodes if you do not want to wait knife ssh 'role:NODE' 'sudo chef-client' -C how many commands at time knife ssh 'role:ROLE' -C1 'sudo chef-client'") Tag: Visual edit
- 13:13, 3 February 2025 413vhcu1lq0463ob talk contribs created page Chef configuration manager : role creation (Created page with "=== '''Navigate to the Roles Directory''' === Roles are stored in a roles/ directory, usually within your Chef repository. If the directory doesn't exist, you can create it. === '''Create the Role File''' === Now, create a new role file. You can name the role file anything, but it’s common to use a name that describes the purpose of the role. For example, let's create a role called rolename. touch roles/rolename.json === '''Edit the Role File''' === Open the rolenam...") Tag: Visual edit
- 13:07, 3 February 2025 413vhcu1lq0463ob talk contribs created page Chef configuration management (Created page with "* Chef configuration manager : role creation") Tag: Visual edit
- 10:31, 3 February 2025 413vhcu1lq0463ob talk contribs created page List tables on PostgreSQL schema (Created page with "=== Query === SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';") Tag: Visual edit
- 10:28, 3 February 2025 413vhcu1lq0463ob talk contribs created page "Describe" a table in PostgreSQL (Created page with "=== Query === SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'TABLE NAME HERE'; === Example === SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'pg_database'; oid|oid|NO datname|name|NO datdba|oid|NO encoding|integer|NO datlocprovider|"char"|NO datistemplate|boolean|NO datallowconn|boolean|NO datconnlimit|integer|NO datfrozenxid|xid|NO datminmxid|xid|NO dattablespac...") Tag: Visual edit: Switched
- 10:25, 3 February 2025 413vhcu1lq0463ob talk contribs created page List databases on PostgreSQL instance (Created page with "=== Query === SELECT datname FROM pg_database; === "Describe" === SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'pg_database'; === column_name, data_type, is_nullable === oid|oid|NO datname|name|NO datdba|oid|NO encoding|integer|NO datlocprovider|"char"|NO datistemplate|boolean|NO datallowconn|boolean|NO datconnlimit|integer|NO datfrozenxid|xid|NO datminmxid|xid|NO dattablespace|oid|NO datcollate|text|NO da...") Tag: Visual edit
- 10:18, 3 February 2025 413vhcu1lq0463ob talk contribs created page PostgreSQL (Created page with "* List databases on PostgreSQL instance") Tag: Visual edit
- 10:17, 3 February 2025 413vhcu1lq0463ob talk contribs created page MySQL/MariaDB (Created page with "== Stuffs == === Creating and deleting databases on MariaDB === CREATE DATABASE database_name; === Creating and deleting users on MariaDB === CREATE USER 'username'@'%' IDENTIFIED BY 'password'; DROP USER 'username'@'%'; === Granting privileges on databases to users on MariaDB === GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'%'; === FLUSH PRIVILEGES === At the end, always flush privileges. FLUSH PRIVILEGES; === How to make backups of MariaDB === Almo...") Tag: Visual edit: Switched
- 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