Skip to main content

Posts

Showing posts with the label linux

my bashrc file for linux terminal

#####################################################################                                                 Start of code ##################################################################### # # ~/.bashrc # # If not running interactively, don't do anything #[[ $- != *i* ]] && return #alias ls='ls --color=auto' #PS1='[\u@\h \W]\$ ' ################################################################# ################################################################# #self added ################################################################# #for sudo work for auto completion if [ "$PS1" ]; then complete -cf sudo fi # set up to use vi command editing mode set -o vi #Allows you to cd into directory by typing the directory name shopt -s autocd ################################################################# # ...

How to set up your shell to use vi command editing mode in Terminal

Most shells that have a command line editing feature support Emacs key bindings. (a tiny subset) Up Ctrl + P Down Ctrl + N Left Ctrl + B Right Ctrl + F Home Ctrl + A End Ctrl + E Delete Ctrl + D Alternatively, you could set up your shell to use vi command editing mode, by adding   set -o vi to your shell startup file (e.g., ~/.bashrc ).  Then, for example, you can Use Esc  k  Enter to re-execute the previous command (same as !! ).  The minus key - also works as a "move up" command. Use Esc  k  k  k  k  k  k  k  k  k  k  k   k Enter or Esc  1 2  k  Enter to re-execute the 12th previous command (same as !-12 ). Use Esc and a motion command (i.e., k , suitably repeated), and then edit the bash command line you find there.  Remember, you will still be in vi command mode, so you will need to use a vi editing command (e.g., I...

How To Add The BlackArch Pentesting Repository To Arch Linux

BlackArch is a penetration testing distribution, similar to Kali Linux, but it’s built on top of Arch Linux. In reality, BlackArch is really a pre-configured Arch installation with an extra repository full of security tools. As a result, you can add the BlackArch repository to a regular install of Arch and gain access to all the same tools. In this tutorial you will learn: How to Download the BackArch Setup Script How to Verify The BlackArch Script How to Run The BlackArch Setup Script How to Install a Package from BlackArch How to Install an Entire Category from BlackArch Install BlackArch on Arch. Software Requirements and Conventions Used Software Requirements and Linux Command Line Conventions Category Requirements, Conventions or Software Version Used System Arch Linux Software BlackArch Repository Other Privileged access to your Linux system as root or via the sudo command. Conventions # - requires given linux commands to be...

install WiFi-Pumpkin (ex 3vilTwinAttacker) for almost any linux

WiFi-Pumpkin (ex 3vilTwinAttacker) WiFi-Pumpkin Description Framework for Rogue Wi-Fi Access Point Attack. WiFi-Pumpkin is a very complete framework for auditing Wi-Fi security. The main feature is the ability to create a fake AP and make Man In The Middle attack, but the list of features is quite broad. Features Rogue Wi-Fi Access Point Deauth Attack Clients AP Probe Request Monitor DHCP Starvation Attack Credentials Monitor Transparent Proxy Windows Update Attack Phishing Manager Partial Bypass HSTS protocol Support beef hook ARP Poison DNS Spoof Patch Binaries via MITM Karma Attacks (support hostapd-mana) LLMNR, NBT-NS and MDNS poisoner (Responder) Pumpkin-Proxy (ProxyServer (mitmproxy API)) Capture images on the fly TCP-Proxy (with scapy) Plugins dns2proxy  - This tools offer a different features for post-explotation on...

How to untar a tar file or gzip-bz2 tar file in Linux

Type at the command prompt tar xzf file.tar.gz - to uncompress a gzip tar file (.tgz or .tar.gz) tar xjf file.tar.bz2 - to uncompress a bzip2 tar file (.tbz or .tar.bz2) to extract the contents. tar xf file.tar - to uncompressed tar file (.tar) tar xC /var/tmp -f file.tar - to uncompress tar file (.tar) to another directory x = eXtract, this indicated an extraction c = create to create ) v = verbose (optional) the files with relative locations will be displayed. z = gzip-ped; j = bzip2-zipped f = from/to file ... (what is next after the f is the archive file) C = directory. In c and r mode, this changes the directory before adding the following files. In x mode, changes directoriy after opening the archive but before extracting entries from the archive. The files will be extracted in the current folder

How to stop MAC address from changing after disconnecting? linux

Network-Manager will reset your mac address during the wifi scanning. To permanently change your mac address: Edit your  /etc/NetworkManager/NetworkManager.conf  as follows: [main] plugins=ifupdown,keyfile [ifupdown] managed=false [device] wifi.scan-rand-mac-address=no [keyfile] Edit your  /etc/network/interfaces  by adding the following line: pre-up ifconfig wlp68s0b1 hw ether xx:xx:xx:yy:yy:yy The  xx:xx:xx:yy:yy:yy  is the new mac address obtained from the output of  macchanger -A wlp68s0b1   sources: click here

Random Posts