Category: Uncategorized
-
Keeping a (GitHub) fork up to date with upstream master
1. Clone your fork: 2. Add remote from original repository in your forked repository: 3. Updating your fork from original repo to keep up with their changes: thanks
-
MySQL / MariaDB DB and user creation
create user ‘nextcloud’@’localhost’ identified by ‘xxx’; create database nextcloud; grant all privileges on nextcloud.* to ‘nextcloud’@’localhost’ identified by ‘xxx’; FLUSH PRIVILEGES;
-
AutoRecon over proxychains
Since we have no icmp/ping over proxychains, we have to change syntax a bit ~/svn/proxychains-ng/proxychains4 -f ~/proxychains.conf ~/svn/AutoRecon/autorecon.py –nmap ‘\-sT \-Pn’ 10.1.1.{1,224,235,246,248}
-
GNOME add minimize maximize
I think I had a blog like this before. Apparently not. Adding minimize and maximize buttons to gnome (in kali for example, if you cannot update:) gsettings set org.gnome.desktop.wm.preferences button-layout ‘:minimize,maximize,close’
-
Linux run (ELF) binary without execute rights
/lib/ld-linux.so /bin/chmod +x /bin/chmod or find your own ld location
-
Linux perform action on file change (like recompile or re-render)
yum install inotify-tools while inotifywait page.html ; do weasyprint page.html page.pdf ; done
-
Compiling: “bad register name `%rsp’”
Check if the arch you are compiling for (or in) has the register you try. For example the rsp register is x86_64, not x86…
-
Vim case insensitive searching /\csearch
use \c before your search string For example: /\csearch will find Search.
-
Running compiled code sh: [10665: 4] tcsetattr: Invalid argument error
Compiling exploit and getting the sh: [10665: 4] tcsetattr: Invalid argument error? It helps to compile on a similar box. Find what linux runs your same kernel version+arch and compile there. Centos 4.4 is a cool one for kernel 2.6.9. That is all.
-
Thunderbird hidden option: sync all subfolders
I have a nice procmail setup, but thunderbird by default does not show/update the subfolders: Open the Config Editor (Hamburger menu (top right) –> Preferences –> Preferences -> Advanced –> General -> Config Editor), and change the mail.server.default.check_all_folders_for_new setting to true. It’s like about:config for thunderbird :)
-
Metasploit using grep (no pipes | )
instead of show payloads | grep windows do grep windows show payloads :)
-
Cross compiling error mingw32: Windows.h: No such file or directory
Rename Windows.h to windows.h ;) Small letter fixes this. 47176.c:1:10: fatal error: Windows.h: No such file or directory #include ^~~ compilation terminated.
-
Vim jump to specific character (number) in (long) line
2 options to jump to 100th character: Use mouse cursor movement: 100l (small L) Or put cursor in exact column: 100| (pipe character)
-
Go compile error checksum mismatch (lnd)
verifying github.com/btcsuite/btcd@v0.20.0-beta: checksum mismatch Β Β Β Β downloaded: h1:PamBMopnHxO2nEIsU89ibVVnqnXR2yFTgGNc+PdG68o= Β Β Β Β go.sum: Β Β h1:DnZGUjFbRkpytojHWwy6nfUSA7vFrzWXDLpFNzt74ZA= SECURITY ERROR This download does NOT match an earlier download recorded in go.sum. The bits may have been replaced on the origin server, or an attacker may have intercepted the download attempt. For more information, see ‘go help module-auth’.…
-
Track data usage using iptables
iptables -I INPUT 1 -s 1.0.0.9 -j ACCEPT iptables -I OUTPUT 1 -d 1.1.2.2 -j ACCEPT iptables -Z #CLEARCOUNTERS
-
Openvas service start timeout
Make sure to kill all redis apt-get purge –auto-remove openvas* apt-get install openvas wait for background tasks to complete ( watch ‘ps aux| grep -Ei vas|green|redis’) run openvas-setup on kali: the 1% complete problem: reduce concurrency (reset openvas password: openvasmd –user admin –new-password=karlo )
-
Centos 8 enable cockpit (minimal install)
yum install cockpit && systemctl enable –now cockpit.socket && sleep 4 && ss -nlap | grep 9090 >/dev/null 2>&1 && echo “https://$(hostname -i):9090/”