Skip to main content

Posts

Showing posts with the label How to

TERMINAL ON ANDROID- TERMUX

Let Termux be our topic today. It is an Android application which is a Terminal Emulator distributed by Fredrik Fornwall. It creates exactly the same working environment of Linux Terminal on Android. Take a try. It can be installed from Google Play Store. Navigate from here . After the environment is set, go to App settings from the System Settings and give the App Storage permission.  Basic linux command like cd, ls, pwd, cat, touch and many more or almost all can be made here on this prompt. To install packages like Python or Pip type in packages install <packageName> It's that simple.  Similarly, to execute a program or a package, type <packageName> then, the corresponding help will be appear. Rest is with you. This is how an installation screen appears to be.. Now, about storage. As the initial step, type in termux-setup-storage Typing pwd gives the current working directory and it will be something like /data/data/com.termux/f...

SETTING UP A C IDE

C-Language The C programming language is one of the most popular and widely used programming languages. It is a general-purpose programming language and there are very few computer systems in existence that are not set up for its use (i.e. where a C compiler does not exist). Here will see how to set up a C IDE. ON WINDOWS Dev C++ is an open source C/C++ compiler that is one of the most user friendly and effective development environment and compiler. It can be downloaded from  source forge  or from  bloodshed . • Download the setup file from any of the above links or from somewhere it is feasile. • Install it and open the IDE. Click on 'New project' from the menu File to the top left. •Type in your code. Next comes the task of saving the source code in c source format. Give it a name and from the drop down menu which appeares in the save window select 'c source file' and then click save. •After saving, click on the compile button from the ...

SNIFF GSM USING HACKRFX

​TOOLS  USED: •  ha ckrf_kali • brategnuradio-companion • gr-gsmgqrx • wireshark INSTALL REQUIREMENTS: First thing, you want to make sure you have all the required software installed, you can install most of them and their dependencies using your distribution package manager. Let’s start with the libraries and tools for the hackrf itself, on a Debian/Ubuntu distro you’ll install them like so: sudo  apt-get install  hackrf   libhackrf -dev libhackrf0 Once these libraries are installed, you can plug your hackrf into one of your USB ports and execute the  hackrf_info  command, at this point you should see something like the following: # hackrf_info Found  HackRF  board. Board ID Number: 2 ( HackRF  One) Firmware Version: 2014.08.1 Part ID Number: 0x00574746 0x00574746 Serial Number: 0x00000000 0x00000000 0x14d463dc 0x2f4339e1 You will now install  gnuradio  which is the software we’ll use to decode the RF signals,...

LOCK OR UNLOCK YOUR PC USING A USB

​If you prevent access to your computer with just a password, you are missing out on an alternate (and more secure) way to lock down your computer. Predator, a free Windows program, turns your USB drive into a key that locks your computer when it’s removed. To unlock your computer, you’ll have to plug the USB drive back in. (Talk about having secret-agent-style security.) Anyone who attempts to access your computer without the USB flash drive will be hit with an epic “Access Denied” message. To get started, follow this guide: Step 1: Download and install Predator. Step 2: Once Predator launches, plug in your USB flash drive. None of the contents of the drive will be deleted or altered in any way, so feel free to use your primary thumbdrive. When you insert the drive, a dialog box will appear asking you to create a password. Click OK to continue. Step 3: In the Preferences window, take note of a few key settings. First, enter a secure, unique pass...

SQL INJECTION

​ SQL  in Web Pages In the previous chapters, you have learned to retrieve (and update) database data, using SQL. When SQL is used to display data on a web page, it is common to let web users input their own search values. Since SQL statements are text only, it is easy, with a little piece of computer code, to dynamically change SQL statements to provide the user with selected data: Server Code txtUserId  =  getRequestString (" UserId "); txtSQL  = "SELECT * FROM Users WHERE  UserId = " +  txtUserId ; The example above, creates a select statement by adding a variable (txtUserId) to a select string. The variable is fetched from the user input (Request) to the page. The rest of this chapter describes the potential dangers of using user input in SQL statements. SQL Injection SQL injection is a technique where malicious users can inject SQL commands into an SQL statement, via web page input. Injected SQL commands can alter SQL statement and com...

FORMAT A USB IN LINUX

​Run the below commands to format the usb to fat32 filesystem from terminal, Type in: lsblk It gives the list of the filesystems on your device. Select the partition. It will be something like /dev/sdbx umount /dev/sdxx then format your device to FAT32 mkdosfs -F 32 -I /dev/ sdx There are also inbuilt packages/softwares which comes with almost all the Linux distributions  which can be used for formatting drives.

CREATE A BOOTABLE USB

​Creating a bootale usb in Linux is much easier than that in Windows. First what you need to have is the iso image of the OS which you wish to install, which can be either downloaded from the internet. In case you do not have an iso but you have the setup files, in the sense all the files that are to be included in the iso, then you should create an iso with those files. In ubuntu or anyother Linux distros, it can be done the following way:Select all the files to be included in the iso image and right click and then select CompressA window apppers asing for the location and the type of the compressed file. There you select .iso and click 'Create'.It is done Now, after you have the iso image ready, place it in an accessable directory. To simplify the case, lets put it in the Desktop. Then folow the steps, Open the terminal (Ctrl+Alt+T).Type in  sudo fdisk -l.      This command will give you the list of all the harddrives connected to you PC and there you c...

INSTALLING APPLICATIONS ON LINUX

Formats Linux uses some common formats to distribute software. The most common formats for the average Ubuntu user are: Debian packages(.deb)TarballsRedhat packages(.rpm) Debian packages (.deb) Debian Packages are the most common format you will encounter when installing software in Ubuntu. This is the standard software packaging format used by Debian and Debian derivatives. All of the software in the Ubuntu repositories is packaged in this format. Synaptic Package Manager, Add/Remove Applications, Aptitude, and apt-get handle the transaction with the repository behind the scenes. Tarballs Tarballs are a large collection of files assembled into a single archive file. The "tar" command is used to combine many files into a single file for archiving or easy distribution. The "gzip" command is used to compress the size of a file so that it takes up less space. A tarball is very similar to a .zip file on Windows, or a .sit or .dmg file on Macs. Tarballs have exten...

ADJUST RESOLUTION IN VM WARE

I was installing Debian on VMware and there encountered a problem with the resolution of the OS using it virtual. The resolution of the Display was not matching with the resolution of the screen, which was 1920x1080. I checked the Display application of Debian, not much use, I found. Then to the resolutions in the Virtual Machine Settings, again no much improvement. After going through the  xrandr  command of Debian, it was found helpful. Copy the following lines of commands and paste it in a file with .sh extension and save it in any Directory, to make it ease put it in the Desktop. xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync xrandr --addmode Virtual1 1920x1080 xrandr --output Virtual1 --mode 1920x1080 I have used 1920x1080 because that was my system resoluton. You can replace the value by the value which you would like to have your screen adjusted to. Now, open the Terminal and type in the command to change...