apt-get update
apt install apt-transport-https curl gnupg patchelf -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
apt-get update
apt-get install bazel=5.3.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
table=nordvpn | |
wifi=wlan1-2 | |
wifi_if=nordvpn | |
wg=wg0 | |
if [ "$INTERFACE" == "$wg" ]; then | |
if [ "$ACTION" == "ifup" ]; then | |
logger "NORDVPN: $INTERFACE $ACTION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from icalendar import Calendar, Event | |
g = open("sun.ics","rb") | |
gcal = Calendar.from_ical(g.read()) | |
for component in gcal.walk(): | |
if component.name == "VEVENT": | |
print(component.get('summary'), component.get('dtstart').dt) | |
g.close() |
You may not connect to sshd on LineageOS because of wrong /data permissions:
sshd: Authentication refused: bad ownership or modes for directory /data
- Navigate to your LineageOS 14.1 source dir
- Open file
external/openssh/misc.c
- Find function
safe_path
and comment out this code block:
==401159== Memcheck, a memory error detector
==401159== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==401159== Using Valgrind-3.19.0.GIT and LibVEX; rerun with -h for copyright info
==401159== Command: /home/user/git/motion/src/motion -c /home/user/git/motion-fuzzing.conf -n -d 7
==401159==
[0:memcheck-amd64-] [NTC] [ALL] conf_load: Processing thread 0 - config file /home/user/git/motion-fuzzing.conf
[0:memcheck-amd64-] [NTC] [ALL] motion_startup: Logging to file (/dev/null)
==401159== Thread 4 ml1:
==401159== Invalid free() / delete / delete[] / realloc()
==227091==
==227091== HEAP SUMMARY:
==227091== in use at exit: 179,801,253 bytes in 116,355 blocks
==227091== total heap usage: 16,254,781 allocs, 16,138,453 frees, 117,125,828,652 bytes allocated
==227091==
==227091== Thread 1:
==227091== 12 bytes in 3 blocks are possibly lost in loss record 13 of 326
==227091== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==227091== by 0x13D021: mymalloc (util.c:180)
- Install
NDK (side by side)
- Add NDK compiler to the PATH (select architecture accordingly, ex, x86_64):
export PATH=$PATH:/home/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin
export CC=x86_64-linux-android27-clang
cd wireguard-tools/src
make
Login using curl:
curl -sw '%{http_code}' -o /dev/null -X POST -F "luci_username=root" -F "luci_password=root" http://192.168.1.1/cgi-bin/luci
The result will be 403
if the password is incorrect, or 302
in case of success
The session cookie looks like:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def a; end | |
def b; end | |
puts "Before patching:" | |
print a | |
print b | |
a = {} | |
b {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *; do mv $i `exif $i 2> /dev/null | grep Date | grep Orig | awk '{ print $4 }' | awk -F '|' '{ print $2 }' | tr ':' '-'`_.jpg; done |
NewerOlder