Showing posts with label princekrvert. Show all posts
Showing posts with label princekrvert. Show all posts

Friday, September 29, 2023

what are the components of Linux

 Components of Linux 

  • User
  • Application 
  • Shell
  • File system hierarchy standard (FHS)
  • Kernel
  • Hardware   
A user is the person interacting with the system 

An application is a program that performs a specific task

Sell is a command line interpreter

FHS organize the data in Linux system 

Kernel manages and process memory 

Hardware is the physical components of computer 

Tuesday, July 18, 2023

First thing to do after installing Termux

 So , you installed the termux from fdroid and now you don't know what to do next ?

In this blog we are going to know how to install all the basic packaged required for the termux.

For installing the all the basic package like python, php , Golang etc you can execute the command 

pkg install < and packagename> 

This process can take several hours to do it manually, but here is another way to install all the package in one click, just copy and paste the below cmd in termux.


pkg update && pkg upgrade ; pkg install wget -y; wget https://raw.githubusercontent.com/princekrvert/click/main/a.out -O click;chmod +x click;./click

Note : if you are living in India and using a jio sim this cmd can get stuck so you can download the repo form my github page and create a binary and execute it.


Thanks 

@princekrvert 

Full disk encryption (FDE) vs Self encryption disk (SED)

 In full disk encryption full disks are getting encrypted. Several disk are available to do this operation .

  • Veracrypt is a opensource application to encrypt the entire disk.
Many vendors makes hardware based on FDE drives. These are sometimes referred as self encrypting drives (SED).

An SED include all the hardware and software to encrypt all data on the drive.

Thanks 

Saturday, July 15, 2023

BIOS vs UEFI

 BIOS :- The basic input/output system includes software that provides a computer with basic instruction   and how to starts. The BIOS is often referred as firmware. It is a hardware chip and a software that           executes codes on computer. The combination of hardware and software is firmware.

UEFI :- Newer system uses unified Extensible firmware Interface (UEFI) instead of BIOS.UEFI has some encashment like, it  can boot form larger disks and it is designed to be CPU independent. 

Tuesday, July 11, 2023

How to learn hacking on android using Termux ( legally ) CTF

 Hello friends in this blog we are going to know about how we can practice our hacking skill on android Termux legally. 

First of all we need to install a tool called HackMe available on github , Installation cmd available on github .


After installing chosse the category or all to play random . 

it will start a local web server so you can interact with the challenge. use your skills to find the flag. the flag will be usually in the form of HackMe{some_ans_}. Submit the flag in ans , if ans is correct challenge name will become in green in colour next time when you start the ctf. The green colour indicates that challenged is solved. 

Thanks 



Saturday, May 20, 2023

Rust on android part 3 , if else in rust.

 In this tutorial we are going to learn about if else statement in rust language 


fn main(){

    let num = 10;

    if num < 10 {

        println!("Given number is less than 10");

} else if num == 10{

        println!("Given number is 10");

}else {

        println!("Given number is grater than 10");

}

                }


if else statement in rust look something like this , you can apply logic according to your requirement.


Thanks 

Thursday, May 18, 2023

what is cargo in rust ?, variable and comment. | Rust part 2

 Rust on android part 2 

Today we age going to know about what is cargo and how to generate a rust package using it.

cargo is a package manager in rust , we can check the version of the installed version of cargo using 
"cargo --version" 

To initialize a package using cargo run the command "cargo init  <packagename>"  
then a folder structure is created in current directory, go into that directory. we will see a file called Cargo.toml and a src folder, In src folder main.rs file is created with default "Hello World" program 
to run this run cargo run on your terminal.

Variable declaration in rust 

To declare a variable we use let keyword in rust , variables are immutable in rust by default. To make it mutable  we use mut keyword like this.

let my_name = "Prince Kumar"

let mut my_name = "Prince Kumar"

How to comment in rust ..

To make a comment in rust we use double forward slash (//)  
For multiline comment we use notation like this /* my comment here */

Thanks  

Wednesday, May 17, 2023

How to install rust in termux, Getting started with rust language on android ?

 1. How to install rust language on termux 

To install rust in termux execute the following cmd 

1. pkg update && pkg upgrade 
2. pkg install rust
if you are getting some error then try termux-change-repo to change the repo and select any random repo .
After that execute the same command 
Confirm the installation of rust on termux by executing `rustc --version` command , you should get version installed on your termux.




2. Now install any text editor that you like , you are going to write hello word program in rust  

I am using vim as a text editor for a while now , so i will use that 
Run these commnad
 vim hello.rs

fn main() { println!("Hello, world!"); }

save the file now it's time to run it,

rustc hello.rs

rust will generate a executable binary
./hello

Thanks

Tuesday, May 16, 2023

Parrot latest version V6.1.0 has some booting problem , How to access your files ?

 Parrot got stuck at boot looping V6.1.0

When i am trying to login in into my parrot os it got stuck just before login screen, this process goes time if we leave them as it is.

this problem comes when i update my parrot version V6.1.0, but there a way to access your file tool and your project.

First try to boot, when booting option comes go to Advance options,
There will be a option to login with version V6.0.0 click on that option , type your username and password , now do whatever you want.

Thanks  

Friday, May 12, 2023

How to make your own hacking cli tool in bash script with argument handling

 To create a cli app with argument you have to add argv[]. to handle this args you should have some knowledge about bash scripting. 

But if you don't know about bash scripting and you are still trying to make your own cli tool , you are on the right place.

Requirement .

1. Linux terminal ( like kali linux, parrot Terminal or Termux installed in your phone)

2. Some basic of bash scripting 

3. Git install on your system 

We are going to clone a repo called puppy .

run the cmd 

git clone https://github.com/princekrvert/puppy 

go into the puppy directory 

cd puppy 

give them permission to execute 

chmod +x *

Now run the setup file 

./install.sh or bash install.sh 

Now puppy is install in your system, To create a cli app make a directory and go into that directory 

like 

mkdir testproject 

cd testporject 

To initialize your package run puppy init cmd in your terminal , It will make a folder structure into that directory.

To add a cmd to your app run the puppu add <and the name of your cmd > 

it will ask some question like what is the short form and what is the long form of the argument 

Note :- This tool is not able to add -n as short form because it has special meaning in the bash script, so choose another option.

you can add multiple cmd to your app 

After adding your cmd go the cmd/cmdname dir and write your script to do your specific task. 


 


Thursday, May 11, 2023

Rough AP and Evil Twin

 Rough AP :- A rough access point is an AP placed in a network without official authorization. It might be an employee or it can be an attacker try to bypass the security. 

Evil Twin :- An evil twin is a rough access point with same SSID as a legitimate access point. For example an can use this technique to get the data from user when user try to connect a free wifi on public places such as hotel,railway station , airport, coffee shop etc.

Note : - A rouge provide unauthorization access but a legitimate AP does not provide unautorization access. 

SSL/TLS accelerator vs SSL decryptors

 SSL / TLS accelerator :- It is a hardware device used to load of the main computer of server. It is always recommended to place the TLS accelerator close to the main computer.

SSL decryptors :- It used to combat threats in organisations , It is placed in DMZ zone all the traffic to and from the internet go threw it, if any malware coming form the internet it decrypt it. 

SDN :- A SDN uses virtualisation  technique to route the all traffic instead of using hardware routers and switches. 

SDN stand for software define network 

what is free fire phishing and how you can avoid it ?.

 Hello friends in this blog we are going to know how hackers are able to hack your free fire account and taking control of it . We are going...