Skip to content

🔐 Karlo Luiten

Think Evil, DO Good

🔐 Karlo Luiten

Think Evil, DO Good

  • Home
  • About me
    • About me
    • LinkedIn
    • Guide to Karlo
  • SELinux cheat sheet
  • CISSP Reference
  • Contact
    • Home
    • 2019
    • November
Uncategorized

Compiling: “bad register name `%rsp'”

karlo Nov 28, 2019 0 Comments

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...

Uncategorized

Problem building Virtualbox modules on Centos (cannot generate ORC metadata)

karlo Nov 28, 2019 0 Comments

Guest Additions 6.0.14 module for kernel 4.18.0-80.11.2.el8_0.x86_64. Error building the module. Build output follows. make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.18.0-80.11.2.el8_0.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules make: warning: -jN forced in submake: disabling…

Uncategorized

Vim case insensitive searching /\csearch

karlo Nov 27, 2019 0 Comments

use \c before your search string For example: /\csearch will find Search.

Uncategorized

Find windows version from commandline (cmd)

karlo Nov 18, 2019 0 Comments

use systeminfo . Running might take 10 seconds.

Uncategorized

Windows identify user (‘whoami’ is not recognized as an internal or external command,)

karlo Nov 18, 2019 0 Comments

Whoami binary, or type "set" and see if it is in the vars.Download

Uncategorized

Running compiled code sh: [10665: 4] tcsetattr: Invalid argument error

karlo Nov 16, 2019 0 Comments

Compiling exploit and getting the sh: 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…

CLI and tools

Bash sort IPs naturally

karlo Nov 12, 2019 0 Comments

sort -t . -k 3,3n -k 4,4n IPs

Uncategorized

Sample systemd unit file

karlo Nov 12, 2019 0 Comments

Description=Sonarr Daemon After=syslog.target network.target User=sonarr Group=sonarr Type=simple ExecStart=/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr TimeoutStopSec=20 WantedBy=multi-user.target

CLI and tools

bash add IP in PWD to variable for easy reference

karlo Nov 11, 2019 0 Comments

Add to .bashrc: export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} ip=\$( echo \$PWD | grep -oE '{1,3}\.{1,3}\.{1,3}\.{1,3}' ) " Now if you browse to/in a directory which has an ipv4 ip, the IP will…

CLI and tools

Easy AutoRecon summary (bash)

karlo Nov 11, 2019 0 Comments

echo "===SUMMARY===";grep . */report/notes.txt| while read line; do IP=$( echo -ne $line|cut -d'/' -f1| tr -d '\n' ); ] && echo; echo -n $IP ; echo -n $line | cut…

Uncategorized

Vim use space to run macro q

karlo Nov 10, 2019 0 Comments

:nnoremap <Space> @q

Uncategorized

Vim show some lines after cursor

karlo Nov 10, 2019 0 Comments

set scrolloff=10

CLI and tools

Proxychains on fedora / centos7

karlo Nov 5, 2019 0 Comments

Clone the repo: https://github.com/rofl0r/proxychains-ng ./configure && make && sudo make install cp src/proxychains.conf /etc/proxychains.conf && vi /etc/proxychains.conf echo "alias p='/usr/local/bin/proxychains4'" >> ~/.bashrc && . .bashrc p ssh xx@ip

Posts

  • Elasticsearch start fail on debian 11 after install from ES repos May 16, 2023
  • Add a simple password to apache site May 11, 2023
  • Linux: add user to existing group May 11, 2023
  • Mikrotik RouterOS guest VLAN routed over ProtonVPN (2023) May 9, 2023
  • SSH in for loop (consuming stdin / using file descriptor 3) May 7, 2023
  • Bash clear tmp files (for script) on exit (trap) May 7, 2023
  • Apache2 (apache) forward https headers May 3, 2023
  • Postgres read long lines (wrap text) May 1, 2023
  • Install `strings` command in debian/linux April 30, 2023
  • SSH jump host config April 8, 2023
  • Wireguard site-to-site (proxmox to mikrotik/routeros) April 8, 2023
  • Masquerade ip forward for Proxmox on hetzner (single IP) April 7, 2023
  • Proxmox migrate to node outside of cluster April 7, 2023
  • Fix “Cannot remove image, a guest with VMID ‘xxx’ exists!” April 7, 2023
  • Add Microsoft fonts (like Arial) to Nextcloud Office (Collabora) April 4, 2023
  • Proxmox move progress (container/VM) March 26, 2023
  • Proxmox move container/vm to different storage on different host March 26, 2023
  • LineageOS recovery bootloop into Google firmware March 24, 2023
  • Add new dmraid to debian11 March 22, 2023
  • Nextcloud / php / apache no error for Internal Server Error March 19, 2023

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Posts

Uncategorized

Elasticsearch start fail on debian 11 after install from ES repos

CLI and tools Linux

Add a simple password to apache site

Linux

Linux: add user to existing group

Networking

Mikrotik RouterOS guest VLAN routed over ProtonVPN (2023)

🔐 Karlo Luiten

Think Evil, DO Good

Copyright © All rights reserved | Blogus by Themeansar.