Skip to content

Instantly share code, notes, and snippets.

View SaicharanKandukuri's full-sized avatar
🐧
Busy with job

Zman | サ イ チャラン SaicharanKandukuri

🐧
Busy with job
View GitHub Profile
@SaicharanKandukuri
SaicharanKandukuri / nethunter.sh
Last active February 20, 2024 22:37
modified nethunter rootless script | based on proot-distro
#!/data/data/com.termux/files/usr/bin/bash -e
cd "${HOME}"
## termux-exec sets LD_PRELOAD so let's unset it before continuing
unset LD_PRELOAD
## Workaround for Libreoffice, also needs to bind a fake /proc/version
## Default user is "kali"
user="kali"
home="/home/$user"
start="sudo -u kali /bin/bash"
@SaicharanKandukuri
SaicharanKandukuri / signing commits in git.md
Last active September 23, 2023 09:59
get verified badge for commits except from github site Github.com
@SaicharanKandukuri
SaicharanKandukuri / solve ioctl error in git.md
Last active August 16, 2021 13:19
gpg: signing failed: Inappropriate ioctl for device gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device

Error probably may look like this

root@clenon:~# echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
@SaicharanKandukuri
SaicharanKandukuri / press enter to exit code in c.md
Last active May 12, 2021 07:45
way to make a c code only exit when any key/enter key is pressed

Holding program is important when it dircetly running its compiled binary for example in windows compiled file are in .exe format that means they are applications and can be launched by a click At this contition conio.h has the thing we require we getch(); to hold output

Example

This is a c code example to use pointers in swapping and adding two variable

  • we use getch at last to hold the process
#include <stdio.h>
#include 
@SaicharanKandukuri
SaicharanKandukuri / Booting a rootfs_zip in a ubuntu_debian machine.md
Last active January 7, 2022 01:19
A way to boot tarballed Linux with systemd

This process requires Superuser privilages.

Step-1: Installing requirements:

we need systmd-nspawn application for doing this whole process. so we need to install it first. This pacakge is name as systemd-container in most of the linux distributions and system-nspwan in some distributions

sudo apt install -y systemd-container

if this dosent work the try this

sudo apt install -y systemd-nspawn
@SaicharanKandukuri
SaicharanKandukuri / Readline_error_solver.md
Last active July 13, 2021 04:26
solution for Readline error in linux

Basically defconf Realine error occurs when there are missing packages,so to install the Just use

For Debian

# If you are not root user
sudo apt install -y readline-common dialog perl
# if you are root user 
apt install -y readline-common dialog perl

Summary:

Whatever your linux distributions is if you see the error just install perl,readline-common,dialog to solve the problem

@SaicharanKandukuri
SaicharanKandukuri / CAP_LAST_CAP dbus in termux.bash
Last active April 25, 2023 12:39
way to run dbus inside termux | A way to run Gnome in termux with root
# https://elixir.bootlin.com/linux/v4.3/ident/CAP_LAST_CAP
# first creating a file with 0 inside file
echo 0 > ~/cap_last_cap
# Next step is to bind the file cap_last_cap to /proc/sys/kernel/cap_last_cap
#for proot-distro with ubuntu-18.04 the command looks like
proot-distro login ubuntu-18.04 --bind cap_last_cap:/proc/sys/kernel/cap_last_cap