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).
- 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
- 23:15, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Cefrtaxjxiqcpntj.png
- 23:15, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Cefrtaxjxiqcpntj.png
- 23:13, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Jsrsahvkbgvkkxzm.png
- 23:13, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Jsrsahvkbgvkkxzm.png
- 23:12, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Etfqtexbpgubqvpm.png
- 23:12, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Etfqtexbpgubqvpm.png
- 23:11, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Djukezotdnmggziq.png
- 23:11, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Djukezotdnmggziq.png
- 23:11, 6 October 2024 413vhcu1lq0463ob talk contribs created page File:Fmwynvpbcxgwkq.png
- 23:11, 6 October 2024 413vhcu1lq0463ob talk contribs uploaded File:Fmwynvpbcxgwkq.png
- 22:35, 6 October 2024 413vhcu1lq0463ob talk contribs created page Deploy Django on Apache2 (Created page with "=== Install needed packages === sudo apt-get install python3 python3-pip apache2 libapache2-mod-wsgi-py3 python3-virtualenv snapd -y === Create virtual environment === Go to /var/www/ and create the dir to your project virtualenv myprojectenv Then activate the environment source myprojectenv/bin/activate === Install pip packages and run all migrations === Install Django and all packages needed pip install django === Configure the Apache web server === <VirtualHos...")
- 22:35, 6 October 2024 413vhcu1lq0463ob talk contribs created page Python (Created page with "* Deploy Django on Apache2")
- 22:35, 6 October 2024 413vhcu1lq0463ob talk contribs created page C Lang simple stuff (Created page with "== All C keywords == {| class="wikitable" |auto |break |case |char |- |const |continue |default |do |- |double |else |enum |extern |- |float |for |goto |if |- |int |long |register |return |- |short |signed |sizeof |static |- |struct |switch |typedef |union |- |unsigned |void |volatile |while |} == C Lang basics == === Primitive types === * char: Typically 1 byte in size. It's used to store characters or small integers. * int: The most common integer type, typically at...")
- 22:34, 6 October 2024 413vhcu1lq0463ob talk contribs created page Docker useful yaml files (Created page with "=== mysql.yaml === version: '3.9' services: mysql: image: mysql:8 restart: always ports: - 3306:3306 expose: - 3306 environment: MYSQL_ROOT_PASSWORD: mysql volumes: - ${PWD}/data/mysql:/var/lib/mysql === postgresql.yaml === version: '3.9' services: postgres: image: postgres restart: always ports: - 5432:5432...")
- 22:34, 6 October 2024 413vhcu1lq0463ob talk contribs created page Docker (Created page with "== Stuffs == * Docker useful yaml files")
- 22:33, 6 October 2024 413vhcu1lq0463ob talk contribs created page Databases (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...")
- 22:33, 6 October 2024 413vhcu1lq0463ob talk contribs created page Mount Remote FSs (Created page with "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")
- 22:32, 6 October 2024 413vhcu1lq0463ob talk contribs created page Stream text processing (Created page with "=== cat === Reads a text file Some useful options: * -n show line numbers * -b show non blank line numbers * -s split multiple break lines into single break line * -A shows special chars ==== tac (the opposite of cat) ==== Reads a text file from the last line to the first === head === Reads the first 10 lines of the file (some distros uses 5 by default) Some useful options: * -n<number> shows this number of lines * -<number> shows this number of lines * -c<number>...") Tag: Visual edit: Switched
- 22:30, 6 October 2024 413vhcu1lq0463ob talk contribs created page Linux LPI Studies (Created page with "=== Subjects === * Stream text processing (cat, head, tail, sort, less, wc) * Stream text processing (uniq, od, paste, split) * Stream text processing (tr, cut, sed)")
- 22:30, 6 October 2024 413vhcu1lq0463ob talk contribs created page Configuring the right button of the touch pad as right click on Gnome (Created page with "Just run this: gsettings set org.gnome.desktop.peripherals.touchpad click-method areas")
- 22:30, 6 October 2024 413vhcu1lq0463ob talk contribs created page Auto mounting drives on boot (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")
- 22:29, 6 October 2024 413vhcu1lq0463ob talk contribs created page Executing scripts on Linux boot (Created page with "To execute a command as soon as the Linux boot you can simply put it on the /etc/rc.local file. Usually this file doesn't exists by default so you can create the file and grant execution privileges to it like: ls -l /etc/rc.local || touch /etc/rc.local ; chmod +x /etc/rc.local First check if the file exists, if exists ok, nothing to do here, if not we're creating the file after all adding the execution permission. IMPORTANT Always remember to put the bang at the be...")
- 22:29, 6 October 2024 413vhcu1lq0463ob talk contribs created page Linux time and clock configuration (Created page with "=== Changing timezone on Linux === To change the timezone on linux you can use the command : timedatectl set-timezone <your_time_zone> To see all timezones avaliable you can use the command: timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara Africa/Asmera Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau . . . (e.g.) timedatectl set-timezone America/Sao_Paulo === Manually configure clock on Linux...") Tag: Visual edit: Switched
- 22:27, 6 October 2024 413vhcu1lq0463ob talk contribs created page Linux file backup (Created page with "== How to make daily file backups on Linux == Just configure the source the name and the output dir, schedule this script to run daily on crontab and it's done. Remember that retention policy is defined in days, so if you want more or less than what we have on the script, just change it to fit your priorities. #!/bin/bash SOURCE= NAME= OUTPUT_DIR= WEEKLY_BACKUP_RETENTION=30 #DAYS MONTHLY_BACKUP_RETENTION=365 #DAYS YEARLY_BACKUP_RETENTION=3650 #DAYS mkdir -p...")
- 22:26, 6 October 2024 413vhcu1lq0463ob talk contribs created page Linux LVM (Created page with "=== Finding the volumes wanted === Use the command lsblk to find what devices you want to use (if it isn't partitioned yet). sdb 8:16 0 32G 0 disk sdc 8:32 0 32G 0 disk sdd 8:48 0 32G 0 disk sde 8:64 0 32G 0 disk sdf 8:80 0 32G 0 disk In my case I'll use sdb, sdc, sdd, sde and sdf. === Formating the partition === To forma...")
- 22:26, 6 October 2024 413vhcu1lq0463ob talk contribs created page Run one script in multiple servers (Created page with "We will use 3 files to run a single script into multiple server at once. * script.sh * servers.list * run.sh The file servers.list is a list of all servers you will run the script on. The file script.sh is the script that will be runned on the servers. The file run.sh will get all servers into the file serves.list will copy the script.sh to /tmp of each server and execute from the server. === Files === ==== servers.list ==== server1 server2 server3 . . . =...")
- 22:26, 6 October 2024 413vhcu1lq0463ob talk contribs created page Crontab (Created page with "Fist of all make your life more easy and use an automatic crontab generator [https://crontab-generator.org/ LINK] but if you really want to know how to configure manually a crontab just follow the rules.")
- 22:25, 6 October 2024 413vhcu1lq0463ob talk contribs created page Configuring Linux static IP (Created page with "== How to configure static IP on Linux distros == I'll not cover gui network managers, only file stuff. === Debian === File : /etc/network/interfaces Configuration: auto NETWORK-INTERFACE iface NETWORK-INTERFACE inet static address xxx.xxx.xxx.xxx gatway xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx Let's suppose that you want to configure the interface ens18 with the ip 192.168.0.100 netmask 255.255.255.0 and gateway 192.168.0.1: auto ens18 iface ens18 in...")
- 22:25, 6 October 2024 413vhcu1lq0463ob talk contribs created page Creating swap on Linux (Created page with "== This should work in any Linux distro == === Create a swapfile === To create the swapfile let's just use the /dev/zero and append on /swapfile we're using 16MB blocks and making 64 of those, in another words 1GB, you can make 0.5GB or 4GB doesn't really matters: dd if=/dev/zero of=/swapfile bs=16M count=64 # 1GB or: dd if=/dev/zero of=/swapfile bs=16M count=128 # 2GB or: dd if=/dev/zero of=/swapfile bs=16M count=256 # 4GB Select one and go for it. === Changing fil...")
- 22:24, 6 October 2024 413vhcu1lq0463ob talk contribs created page Linux (Created page with "== Stuffs == * Creating swap on Linux * Configuring Linux static IP * Crontab * Run one script in multiple servers * Linux LVM * Linux file backup * Linux time and clock configuration * Executing scripts on Linux boot * Auto mounting drives on boot (/etc/fstab) * Configuring the right button of the touch pad as right click on Gnome (not works by default) * [https://itsfoss.com/ubuntu-split-screen/ Horizontal split screen in Linux]...")
- 22:24, 6 October 2024 413vhcu1lq0463ob talk contribs created page BSD Unix (Created page with "== FreeBSD == === Some usefull commands === * freebsd-version - returns the version of the os running (do not trust in /etc/*release this file is updated only on reboot) === Patch update === This will download what is needed freebsd-update fetch This will install what was downloaded freebsd-update install === Release update === This will download what is needed freebsd-update -r RELEASE-VERSION upgrade Reboot the OS And then install everything freebsd-update in...")
- 22:17, 6 October 2024 User account Test talk contribs was created
- 21:20, 6 October 2024 MediaWiki default talk contribs created page Main Page