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
    • Uncategorized
    • Page 2
Uncategorized

Extend a LVM-based swap partition

karlo April 17, 2020 0 Comments

Sometimes your swap is not large enough [root@server ~]# free -g total used free shared buff/cache available Mem: 23 3 13 0 7 19 Swap: 1 0 1 [root@server ~]#…

Uncategorized

Fix bricked firmware update jabra (evolve)

karlo April 6, 2020 0 Comments

Get firmware from support site. Then update via "C:\Program Files (x86)\Jabra\SDKFirmwareUpdater\JabraFwUpdater.exe"

Uncategorized

Tmux save all output (history) to file

karlo February 4, 2020 0 Comments

bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer' Add above in tmux.conf. Then do Prefix+Shift+P

Uncategorized

Excel return last line of multi line cell

karlo January 27, 2020 0 Comments

=TRIM(RIGHT(SUBSTITUTE(B5,CHAR(10),REPT(" ";200));200)) Especially useful for project trackers. Add a LEFT(XXX;10) for returning dates.

Uncategorized

Keeping a (GitHub) fork up to date with upstream master

karlo January 26, 2020 0 Comments

1. Clone your fork: git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git 2. Add remote from original repository in your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream 3. Updating your…

Uncategorized

MySQL / MariaDB DB and user creation

karlo January 12, 2020 0 Comments

create user 'nextcloud'@'localhost' identified by 'xxx'; create database nextcloud; grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'xxx'; FLUSH PRIVILEGES;

Uncategorized

AutoRecon over proxychains

karlo January 5, 2020 0 Comments

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}

Uncategorized

Set scp port

karlo January 3, 2020 0 Comments

scp -P 80 … yes, capital P

Uncategorized

Find Linux architecture without arch command

karlo December 29, 2019 0 Comments

getconf LONG_BIT though uname -a should help too

Uncategorized

GNOME add minimize maximize

karlo December 20, 2019 0 Comments

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…

Uncategorized

Linux run (ELF) binary without execute rights

karlo December 15, 2019 0 Comments

/lib/ld-linux.so /bin/chmod +x /bin/chmod or find your own ld location

Uncategorized

Linux perform action on file change (like recompile or re-render)

karlo December 2, 2019 0 Comments

yum install inotify-tools while inotifywait page.html ; do weasyprint page.html page.pdf ; done

Uncategorized

Compiling: “bad register name `%rsp'”

karlo November 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 November 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 November 27, 2019 0 Comments

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

Uncategorized

Find windows version from commandline (cmd)

karlo November 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 November 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 November 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…

Uncategorized

Sample systemd unit file

karlo November 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

Uncategorized

Vim use space to run macro q

karlo November 10, 2019 0 Comments

:nnoremap <Space> @q

Uncategorized

Vim show some lines after cursor

karlo November 10, 2019 0 Comments

set scrolloff=10

Uncategorized

Thunderbird hidden option: sync all subfolders

karlo October 31, 2019 0 Comments

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

Uncategorized

Metasploit using grep (no pipes | )

karlo October 30, 2019 0 Comments

instead of show payloads | grep windows do grep windows show payloads :)

Uncategorized

SQLMap pentesting answer Yes (or default) to questions

karlo October 26, 2019 0 Comments

use --batch

Uncategorized

Cross compiling error mingw32: Windows.h: No such file or directory

karlo October 20, 2019 0 Comments

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.

Uncategorized

Use ls in cmd.exe

karlo October 19, 2019 0 Comments

doskey ls=dir

Uncategorized

Vim jump to specific character (number) in (long) line

karlo October 18, 2019 0 Comments

2 options to jump to 100th character: Use mouse cursor movement: 100l (small L)Or put cursor in exact column: 100| (pipe character)

Uncategorized

XFCE Focus follows mouse

karlo October 18, 2019 0 Comments

Settings Window ManagerFocusFocus modelset Focus follows mouse

Uncategorized

Go compile error checksum mismatch (lnd)

karlo October 16, 2019 0 Comments

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…

Uncategorized

Windows find file recursive cmd

karlo October 15, 2019 0 Comments

dir *file*.* /s

Posts navigation

1 2 3 … 9

« Previous Page — Next Page »

Posts

  • Python upgrade venv python binary/version September 15, 2023
  • Git use different ssh key once September 12, 2023
  • TASK ERROR: zfs error: could not find any snapshots to destroy; check snapshot names. September 5, 2023
  • Upgrade postgresql cluster from 13 to 15 June 29, 2023
  • Upgrade debian 11 to 12 June 29, 2023
  • 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

Meta

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

Posts

Uncategorized

Python upgrade venv python binary/version

Uncategorized

Git use different ssh key once

Uncategorized

TASK ERROR: zfs error: could not find any snapshots to destroy; check snapshot names.

Uncategorized

Upgrade postgresql cluster from 13 to 15

🔐 Karlo Luiten

Think Evil, DO Good

Copyright © All rights reserved | Blogus by Themeansar.