Posts

Showing posts from June, 2022

Enable WIFI ADAPTER Monitor Mode in Kali Linux

Connect the WIFI adapter and add it in VirtualBox USB Settings TP-Link TL-WN725N 150Mbps Wireless N Nano USB Adapter https://www.amazon.in/gp/product/B008IFXQFU Check the Adapter Chippet lsusb Bus 001 Device 002 : ID 2357 : 0109 TP-Link TL-WN823N v2 / v3 [Realtek RTL8192EU] Bus 001 Device 001 : ID 1 d6b: 0002 Linux Foundation 2 . 0 root hub Bus 002 Device 002 : ID 80 ee: 0021 VirtualBox USB Tablet Bus 002 Device 001 : ID 1 d6b: 0001 Linux Foundation 1 . 1 root hub Find Appropriate Driver for Realtek RTL8192EU from GitHub https://github.com/clnhub/rtl8192eu-linux Install the dependencies sudo apt install linux-headers-generic build-essential dkms git Clone the Driver git clone https://github.com/clnhub/rtl8192eu-linux.git Configure the Architecture and Monitor Mode Open MakeFile in Text Editor or Nano If you're using a different architecture than x86, the set (MakeFile) CONFIG_PLATFORM_I386_PC = n set your architecture CONFIG_PLATFORM_ARM_AARCH64

Python Requests Library: Handling Exception for REST API Calls

Python requests is a powerful library for consuming REST API methods. There are chances for throwing errors when calling these services. This error can be handled by using base Exception class import requests url = "https://reqbin.com/echo/post/json" try : re = requests. get (url, timeout= 5 ) if re.ok: print (re. text ) else : print ( "Service Unavailable!" ) except Exception: print ( "Connection Error" ) This script will handle the connection timed out error and maximum retry error. Gist URL: https://gist.github.com/anthoniraj/619bfec6dc389290aa0ccda2927163c5

Setting up the React Native Expo Development Environment

Operating System : Windows 11 Processor: AMD Install NodeJS Download and install the latest LTS (Long Term Support) version of NodeJS from official website Download NodeJS After installing NodeJS, Check the following commands in Command Window node --version npm --version Now, Install Expo Command Line Interface (CLI) using npm, npm install expo-cli --global Check the version after successful installation expo --version Create a new App using expo Go to your workspace folder run expo init app_name app_name can be your favorite name of the app Open the App using VS Code Go to the App Folder cd app_name Open it with code code . Run the Demo App You should be able to use Expo App using VSCode. There is an App.js main script in the root folder Just open and explore the React Script Run the app in VSCode Terminal using expo start command Check the App Output You can simply open the app in browser to check the output. You can also install Expo Mobil