iptraf-ng: A Lightweight Yet Powerful Alternative to TCPDump and Wireshark

Iptraf-ng stands out as an excellent alternative to Wireshark and tcpdump, offering a robust set of features for comprehensive network traffic analysis. This versatile tool gathers a wide range of information, including TCP connection details, interface statistics, and TCP/UDP traffic breakdowns. Its key features make it a compelling choice: IP Traffic Monitoring: Provides real-time insights into IP traffic across your network. Detailed Interface Statistics: Displays comprehensive statistics on IP, TCP, UDP, ICMP, non-IP packets, and more. TCP and UDP Service Monitoring: Monitors incoming and outgoing packets for commonly used TCP and UDP application ports. LAN Statistics Module: Identifies active hosts on the LAN, offering data activity statistics. Protocol Display Filters: Enables users to customize displays for specific protocols like TCP, UDP, and others. Logging Capabilities: Allows for the logging of network activity, facilitating detailed analysis. As a user-friendly and efficient network monitoring tool, iptraf-ng presents itself as a valuable alternative to Wireshark and tcpdump. Its capabilities make it particularly well-suited for those seeking a reliable solution for network analysis and troubleshooting. The example screenshot of the IP traffic monitor underscores its user-friendly interface and robust functionality, positioning iptraf-ng as a commendable choice in the realm of network monitoring tools. ...

February 4, 2024 · 1 min · thomasf
excel-work

vlookup with powershell

I want to use the vlookup excel function within powershell and without data manipulation of the CSV itself. So I wrote a script to import a CSV, find some data and compare these data $CSV = Import-Csv -Path C:\Users\user\some.csv $trigger = $CSV| Where-Object {$_."Primary Description" -like "some string with a computername"} $result = $CSV| Where-Object {$_."Primary Description" -like "another string with a computername"} $triggerComputer = foreach ($i in $trigger) {($i."Primary Description" -split " ")[5]} $resultComputer = foreach ($i in $result) {($i."Primary Description" -split " ")[5]} Compare-Object $triggerComputer $resultComputer Have fun!

August 30, 2023 · 1 min · thomasf
new-software-old-computer

Install winget without the Microsoft App Store

If you are unable to access the Windows Store app and wish to install winget, you can easily do so by following these steps: First download the latest version of winget: https://aka.ms/getwinget Then use this Powershell command to install winget Add-AppxPackage -Path Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle Probably you will get this error: Windows cannot install package Microsoft.DesktopAppInstaller_1.19.10173.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework “Microsoft.UI.Xaml.2.7” published by “CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US”, with neutral or x64 processor architecture and minimum version 7.2109.13004.0, along with this package to install. The frameworks with name “Microsoft.UI.Xaml.2.7” currently installed are: {} ...

May 24, 2023 · 2 min · thomasf
OpenSSH_logo

Install and Configure OpenSSH Windows Server 2019 and 2022 and configure key-based authentication

OpenSSH is a free and open-source software that allows secure communication between computers over an unsecured network. It is widely used on Linux and Unix systems, but it is also available for Windows systems. In this article, we will show you how to install and configure OpenSSH on a Windows 2022 server. Step 1: Install OpenSSH The first step is to install OpenSSH on your Windows server. To do this, follow these steps: ...

April 6, 2023 · 3 min · thomasf
OpenSSH_logo

NTP Error: the computer did not resync because no time data was available

When it comes to configuring your Primary Domain Controller (PDC) or local Network Time Protocol (NTP), you’ll find a a lot of information online. But in a nutshell this is what you have to do: w32tm /config /manualpeerlist:"<IPTIMESERVER>,0x1" /syncfromflags:manual /reliable:yes /update net stop w32time net start w32time w32tm /resync /rediscover But if the timeserver isn’t reliable you get the error: The fix is really easy. Remove the /reliable:yes option w32tm /config /manualpeerlist:"<IPTIMESERVER>,0x1" /syncfromflags:manual /update And then after the w32tm /resync /rediscover: ...

April 3, 2023 · 1 min · thomasf
snort3

TCPDump alternative Windows

Are you in a situation where you need to capture and analyze network traffic, but don’t have Wireshark or TCPDump at your disposal? Don’t worry, there’s still a solution. Enter pktmon. While it may not be the most sophisticated tool out there, pktmon is a viable option for monitoring traffic in real-time. With its lightweight and efficient design, you can quickly capture and analyze packets without the need for any additional software installations. ...

March 31, 2023 · 2 min · thomasf
empty-battery

Debug and Fix Android battery drain (system_server)

I previously write an article about a logd battery drain: /2021/11/android-logd-battery-drain/ But you can also have an system_server battery drain. With some easy debug steps you can find the root cause of this drain. First install ADB Put your phone in development mode Start “adb shell” Start “top” If you have an high system_server CPU than check the PID. Note: In my screenshot it is already fixed. But this was 30~35% CPU ...

February 22, 2023 · 1 min · thomasf

grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS

I’ll was getting this issue when I try to install BetterBatteryStats on my Oneplus device. There are 3 things to do if you want to fix this: Enable Developer mode Disable Permission Monitoring (dutch: Machtigingscontrole uitschakelen). You can find this setting in the debugger options somewhere near the bottom. You need to force quit the batteryBatteryStats app (or reboot the phone) Then you can set the permissions: adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS adb -d shell settings put global hidden_api_policy 1

February 22, 2023 · 1 min · thomasf
nvidia

Old 2010 Macbook Nvidia Ubuntu black screen fix

All the credits are for Andreas @ https://askubuntu.com/questions/264247/proprietary-nvidia-drivers-with-efi-on-mac-to-prevent-overheating/613573#613573 Nvidia is always a pain in the ass on Linux. Especially with a old white 2010 macbook. I have black screen issues every time so I create this article so I can easy find it when I reinstall this laptop ;-) First find the right identifiers. We need both the IDs for the graphics card and the PCI-E bridge that it is connected to. Issue the following command in a shell: ...

November 22, 2022 · 2 min · thomasf

Use PowerShell Invoke-WebRequest to login on a website

To automate some tasks with PowerShell on a website you sometimes need to log in. Today I tried some curl and postman tricks but it isn’t hard if you know what to script with PowerShell and bypass all other tools. First, find a website to log in to, then check the page source and what the submit button does. In this example, it is “Inloggen” (dutch for login). Then start the developer tools (F12), select the network tab, enter the credentials and login. ...

October 4, 2022 · 3 min · thomasf