meow meow meow meow
Wordfence is a Wordpress plugin used to protect against automated attacks. Provided with access to MySQL (and MySQL credentials), you can recover the TOTP secret for an account. As discussed in this blog post, Wordfence stores 2FA secrets in plain-text (technically in binary, in a MySQL table). This still works as of Wordfence 8.0.3, but you can check the TOTP source code to see if additional security has been added.
-
Obtain the database credentials. This can be found in
wp-config.php
in the WP root. You want$table_prefix
(if multiple WP installs),DB_NAME
,DB_USER
, andDB_PASSWORD
.DB_HOST
is assumed to belocalhost
. -
Connect to the database:
$ mysql $DB_HOST --user=$DB_U
- setup user mapping with ntfs-3g
- fix user:
chown -R koopa:koopa .
- in windows, make sure that subfolder + file permissions are being inherited from the root
- in linux, fix file perms:
find . -type f -print0 | sudo xargs -0 chmod 644
- add execute perms within steam library
- in linux, fix dir perms:
find . -type d -print0 | sudo xargs -0 chmod 755
at this point, things should pretty much be working: newly created documents are rw for the owner (shared between windows and linux), and can optionally be made executable
however, linux creates them as 644, whereas windows-created files show up in linux as 600
/** | |
* This file has no copyright assigned and is placed in the Public Domain. | |
* This file is part of the mingw-w64 runtime package. | |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. | |
* | |
* The status values have been taken from | |
* http://msdn.microsoft.com/en-us/library/cc704588.aspx | |
* except for the small group of values below. | |
*/ | |
#ifndef _NTSTATUS_ |
Hiya! This article will draw some connections between the mechanics of virtual memory and the funny numbers that you see in your operating system's task manager. We will talk about basic systemwide memory statistics as well as per-process properties. The main contribution of this article is illustrating the similarities between Windows and Linux in a way that can be observed using a couple of systems and some curiosity.
TODO: Linux does use "commit" in the same way. also, talk about optimistic malloc
TODO: consider https://sw.kovidgoyal.net/kitty/faq/#i-opened-and-closed-a-lot-of-windows-tabs-and-top-shows-kitty-s-memory-usage-is-very-high
// Boot loader. | |
// | |
// Part of the boot block, along with bootasm.S, which calls bootmain(). | |
// bootasm.S has put the processor into protected 32-bit mode. | |
// bootmain() loads an ELF kernel image from the disk starting at | |
// sector 1 and then jumps to the kernel entry routine. | |
#include "types.h" | |
#include "elf.h" | |
#include "x86.h" |
I am trying to switch between my default keyboard layout (US, QWERTY) to an alternate layout (US, Dvorak Programmer). I have produced an Xorg config to set this up, but the toggle doesn't work, and the generated source from xkbcomp
suggests that it is not being used.
When I run setxkbmap -option "grp:toggle"
, everything then works (even though this should be redundant with the configuration).
01_xorg.conf.d
is my Xorg configuration: everything in/etc/X11/xorg.conf.d
. I do not have an/etc/X11/xorg.conf
, and my only vendor configurations in/usr/share/X11/xorg.conf.d/
are for associating input devices with libinput (and enabling quirks for certain ones).02_Xorg.0.log
is my Xorg log when booting with this configuration. You can see that thedvp
layout is recognized.03xkb_BEFORE_setxkbmap.xkb
is the generated source for this configuration, obtained usingxkbcomp $DISPLAY 1.xkb
.- [`04_xkb_AFTER_setxk
#!/bin/sh -eu | |
# See https://clang.llvm.org/get_started.html. | |
LLVM_VERSION=15.0.0 | |
readonly LLVM_VERSION | |
source_dir=llvm-project-$LLVM_VERSION.src | |
source_archive=llvm-project-$LLVM_VERSION.src.tar.xz | |
source_url=https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/$source_archive |