Android LOGD battery drain

Pfff I’ve had a battery drain for weeks on my Oneplus device (you know that your phone battery drains faster than you would expect). But that drain was not visible in the android battery overview. I had already installed an app (betterbattrystats) that give you more information about the drain. With betterbatterystats I found out that logd could be the issue, but logd is a log service so it should not be a root cause. ...

November 13, 2021 · 2 min · thomasf
wyse

DHCP Test Tool

I had to check my DHCP configuration for a Dell Wyse Thin Client. But when you configure specific options like 161 and 162 you don’t see that options in a Wireshark capture during a Windows DHCP request. Luckily for us CyberShadow created a great tool to test some specific DHCP settings an he even make it open source: https://github.com/CyberShadow/dhcptest This DHCP tool have 2 great features: You can do a request for specific DHCP option You can send a vendor class so in my case I can pretend to be a Wyse Thin client. DHCP Request Option This will only work when you have configured Global DHCP settings. ...

November 11, 2021 · 2 min · thomasf
140px-Wireshark_icon.svg

Windows network package capture without installing anything (on the server)

I like Wireshark. But I don’t like to install software on a server for troubleshooting purposes. Especially when you need software like PCAP to sniff some network data. But what you can do is capture data data with netsh, copy the data to your workstation, convert the data so you can read it with wireshark and do you thing. Capture the data Run this command to capture the data (elevated command prompt) ...

November 5, 2021 · 1 min · thomasf
remote-desktop-rdp-mstsc-icon

Slow initial RDP connection

For me, this was a pain in the ass for a long time. When I connect to a Windows server through RDP/RDS it sometimes takes more than 2 minutes to connect to a server. Today after some waiting, and waiting and some more waiting I did a deep dive with Wireshark to figure out why it was so slow. My setup Azure domain joined Windows 10 device (Laptop) Connection over a Cisco Anyconnect VPN Remote Desktop Manager (Devolutions) Native RDP client MremoteNG Remote VS local I know for sure the issue should be in my setup. Because when I connect first to a jump host (RDP) and then connect to other domain-joined servers everything was connected almost immediately after I put in my user credentials. ...

November 4, 2021 · 3 min · thomasf
pexels-marta-branco-1194713

OWASP ZAP Proxy with Android on Genymotion

It can be fun to reverse engineer some android applications. I think it’s better to do this on your workstation instead of your phone because it’s way more flexible and you don’t ruin your phone when you break things ;) In my case, I use Debian 11. But of course, you can do this with any OS. Requirements An app you want to debug OWASP ZAP Proxy Genymotion NPM APK Export (Android App) OWASP ZAP Proxy I use the snap package for ZAP because it’s easy to install and you’ve always the latest version. ...

October 26, 2021 · 3 min · thomasf
wale

Some useful docker commands

Attach to a container docker exec -i -t container_name /bin/bash List images docker image ls List all existing containers docker ps -a Delete a image docker image rm image_name Delete all images docker image rm $(docker images -a -q) Stop a container docker stop container_name Stop all running containers docker stop $(sudo docker ps -a -q) Delete a container docker rm container_name Delete all containers docker rm $(docker ps -a -q) Display logs of a container ...

September 15, 2021 · 1 min · thomasf

Ubuntu cannot connect to Cisco Router

Please follow these steps if you cannot can connect to a router. For example ssh someusername@blog.wapnet.nl Output Unable to negotiate with blog.wapnet.nl port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 use the -o parameter ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 someusername@blog.wapnet.nl Output: Unable to negotiate with blog.wapnet.nl port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc and add the -c parameter ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -c aes256-cbc someusername@blog.wapnet.nl and you are connected :) ...

July 23, 2021 · 1 min · thomasf
Screenshot_20210527_235205

Fix Screen Tearing in Linux

It cost me a lot of time to troubleshoot the screen tearing. So I want to share my solution for everyone with the same frustrating tearing issues. My private setup is a Lenovo Ideapad (gaming) with Nvidia and Intel (Prime) GPU. I use the laptop screen and an external 24" HDMI display. In Windows 10 everything goes smooth but when I switch my dual boot to Linux than the frustrations begin. ...

May 27, 2021 · 3 min · thomasf

Install Synology Drive Client on Solus Linux

The current 3rth party repo is deprecated so I’ve created my own fork for version: 2.0.4-11112 sudo eopkg bi --ignore-safety https://raw.githubusercontent.com/L0g0ff/3rd-party/master/network/download/synology-drive-client/pspec.xml sudo eopkg it synology-drive-client*.eopkg;sudo rm synology-drive-client*.eopkg Have fun!

May 3, 2021 · 1 min · thomasf

504 Gateway Timeout on Synology NAS

Looks familiar? I want to move this blog to my own NAS because I have plenty enough bandwidth and with Cloudflare as reverse proxy it is secure enough also (and I like to hobby off course ;) ). I tried to use the Duplicator WordPress plugin to make a dump of my website and do a restore in the Synology Webstation. But during the database restore in step 2 every time I was getting a 504 gateway timeout after a minute (exactly 60 seconds). ...

February 10, 2021 · 2 min · thomasf