sniffex – C program to Capture wifi packets using libpcap

libpcap provides functions for user-level packet capture, used in low-level network monitoring. Following program captures the packets from the wireless interface of the device on which the compiled binary will be running. We have compiled this on ubuntu 16.04, and run it on laptop with wifi interface as wlan0, hence it will capture the wifi … Read more

How Android Bluetooth Profiles are enabled and Services are activated ?

How Android Bluetooth profiles are enabled ? Answer: Check packages/apps/Bluetooth/res/values/config.xml If you want to disable the above profile, change from “true” to “false” The above flags are used during initialisation as below, in file, packages/apps/Bluetooth/src/com/android/bluetooth/btservice/Config.java Resource flag to indicate whether profile is supported or not. Supported Profile services are defined at, Now inside init, it … Read more

Turn Your Linux PC Into Bluetooth Speakers For Your Mobile Phone

WiFi

This post shows steps to Play Songs from mobile and listen on laptop/desktop speaker over Bluetooth. The steps are performed on Ubuntu 16.04, there might be some issues for later Ubuntu version, you can try. Create a file as below, Install Blueman as, Start blueman manager as, You may see a window like below, Start … Read more

Configure Ubuntu 16.04 as Bluetooth A2DP Sink

This post shows steps configure Ubuntu 16.04 as Bluetooth A2DP Sink. When Ubuntu is acting as A2DP sink you will be able to Play Songs from mobile and listen on laptop/desktop speaker over Bluetooth. Create a file as below, Install Blueman as, Start blueman manager as, You may see a window like below, Start Bluetooth … Read more

Debug levels for Linux kernel PrintK

If you have already tried to write the first kernel module from port “Writing first Linux kernel Module and understanding Kernel module compilation, loading and unloading” , you might have seen that in Linux kernel we used “printk” whereas we use “printf” into the application programs. Application printf example, Whereas, same code if we want … Read more

Send and receive data from user space and kernel using Netlink sockets

As mentioned in Linux kernel souce code net/netlink/af_netlink.c, netlink is a Kernel-user communication protocol which allows user to send and receive data to Linux kernel using sockets as we do for other socket communication. Netlink is used to transfer information between the kernel and userspace processes. It consists of a standard sockets-based interface for user … Read more

How to enable DRM driver debug logging in Linux ?

If you are facing some issues with graphics or DRM , display etc.. sometime your may want to enable the DRM drivers all debugging messages so you can narrow down the problems. In Linux the drm kernel drivers source code can be found in drivers/gpu/drm. Enabling verbose debug messages is done through the drm.debug parameter, … Read more

Communication between user-space and kernel space using Netlink sockets

As mentioned in Linux kernel souce code net/netlink/af_netlink.c, netlink is a Kernel-user communication protocol which allows user to send and receive data to Linux kernel using sockets as we do for other socket communication. Netlink is used to transfer information between the kernel and userspace processes. It consists of a standard sockets-based interface for user … Read more

How to Scan and display list of available wireless networks ?

LINSSID – linssid is a graphical wireless scanner, LinSSID displays locally receivable 802.11 wireless attach points and ad hoc networks. A table is displayed with various parameters such as MAC address, channel, and signal strength. Graphs are also displayed with signal strength by channel and signal strength over time. LinSSID can be used to measure the … Read more

Subscribe for New Post Updates

Join 211 other subscribers