Пропускане към основното съдържание

Configuring of GRUB 2.02~beta2-22 "grub.cfg" from Kali Linux 2.0 kernel-4.0.0 , to dual booting with CentOs 6.7 kernel-4.1.1- manual installed


1:  #  
2:  # DO NOT EDIT THIS FILE  
3:  #  
4:  # It is automatically generated by grub-mkconfig using templates  
5:  # from /etc/grub.d and settings from /etc/default/grub  
6:  #  
7:  ### BEGIN /etc/grub.d/00_header ###  
8:  if [ -s $prefix/grubenv ]; then  
9:   set have_grubenv=true  
10:   load_env  
11:  fi  
12:  if [ "${next_entry}" ] ; then  
13:    set default="${next_entry}"  
14:    set next_entry=  
15:    save_env next_entry  
16:    set boot_once=true  
17:  else  
18:    set default="0"  
19:  fi  
20:  if [ x"${feature_menuentry_id}" = xy ]; then  
21:   menuentry_id_option="--id"  
22:  else  
23:   menuentry_id_option=""  
24:  fi  
25:  export menuentry_id_option  
26:  if [ "${prev_saved_entry}" ]; then  
27:   set saved_entry="${prev_saved_entry}"  
28:   save_env saved_entry  
29:   set prev_saved_entry=  
30:   save_env prev_saved_entry  
31:   set boot_once=true  
32:  fi  
33:  function savedefault {  
34:   if [ -z "${boot_once}" ]; then  
35:    saved_entry="${chosen}"  
36:    save_env saved_entry  
37:   fi  
38:  }  
39:  function load_video {  
40:   if [ x$feature_all_video_module = xy ]; then  
41:    insmod all_video  
42:   else  
43:    insmod efi_gop  
44:    insmod efi_uga  
45:    insmod ieee1275_fb  
46:    insmod vbe  
47:    insmod vga  
48:    insmod video_bochs  
49:    insmod video_cirrus  
50:   fi  
51:  }  
52:  if [ x$feature_default_font_path = xy ] ; then  
53:    font=unicode  
54:  else  
55:  insmod part_msdos  
56:  insmod ext2  
57:  set root='hd0,msdos5'  
58:  if [ x$feature_platform_search_hint = xy ]; then  
59:   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
60:  else  
61:   search --no-floppy --fs-uuid --set=root aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
62:  fi  
63:    font="/usr/share/grub/unicode.pf2"  
64:  fi  
65:  if loadfont $font ; then  
66:   set gfxmode=auto  
67:   load_video  
68:   insmod gfxterm  
69:   set locale_dir=$prefix/locale  
70:   set lang=en_US  
71:   insmod gettext  
72:  fi  
73:  terminal_output gfxterm  
74:  if [ "${recordfail}" = 1 ] ; then  
75:   set timeout=-1  
76:  else  
77:   if [ x$feature_timeout_style = xy ] ; then  
78:    set timeout_style=menu  
79:    set timeout=5  
80:   # Fallback normal timeout code in case the timeout_style feature is  
81:   # unavailable.  
82:   else  
83:    set timeout=5  
84:   fi  
85:  fi  
86:  ### END /etc/grub.d/00_header ###  
87:  ### BEGIN /etc/grub.d/05_debian_theme ###  
88:  insmod part_msdos  
89:  insmod ext2  
90:  set root='hd0,msdos5'  
91:  if [ x$feature_platform_search_hint = xy ]; then  
92:   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
93:  else  
94:   search --no-floppy --fs-uuid --set=root aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
95:  fi  
96:  insmod png  
97:  if background_image /usr/share/images/desktop-base/kali-grub.png; then  
98:   set color_normal=white/black  
99:   set color_highlight=black/white  
100:  else  
101:   set menu_color_normal=cyan/blue  
102:   set menu_color_highlight=white/blue  
103:  fi  
104:  ### END /etc/grub.d/05_debian_theme ###  
105:  ### BEGIN /etc/grub.d/10_linux ###  
106:  function gfxmode {  
107:       set gfxpayload="${1}"  
108:  }  
109:  set linux_gfx_mode=  
110:  export linux_gfx_mode  
111:  menuentry 'Kali GNU/Linux' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-aba53f9f-ddd8-4b47-b965-cdde2e4cb720' {  
112:       load_video  
113:       insmod gzio  
114:       if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi  
115:       insmod part_msdos  
116:       insmod ext2  
117:       set root='hd0,msdos5'  
118:       if [ x$feature_platform_search_hint = xy ]; then  
119:        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
120:       else  
121:        search --no-floppy --fs-uuid --set=root aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
122:       fi  
123:       echo     'Loading Linux 4.0.0-kali1-686-pae ...'  
124:       linux     /boot/vmlinuz-4.0.0-kali1-686-pae root=UUID=aba53f9f-ddd8-4b47-b965-cdde2e4cb720 ro initrd=/install/gtk/initrd.gz quiet  
125:       echo     'Loading initial ramdisk ...'  
126:       initrd     /boot/initrd.img-4.0.0-kali1-686-pae  
127:  }  
128:  submenu 'Advanced options for Kali GNU/Linux' $menuentry_id_option 'gnulinux-advanced-aba53f9f-ddd8-4b47-b965-cdde2e4cb720' {  
129:       menuentry 'Kali GNU/Linux, with Linux 4.0.0-kali1-686-pae' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-kali1-686-pae-advanced-aba53f9f-ddd8-4b47-b965-cdde2e4cb720' {  
130:            load_video  
131:            insmod gzio  
132:            if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi  
133:            insmod part_msdos  
134:            insmod ext2  
135:            set root='hd0,msdos5'  
136:            if [ x$feature_platform_search_hint = xy ]; then  
137:             search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
138:            else  
139:             search --no-floppy --fs-uuid --set=root aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
140:            fi  
141:            echo     'Loading Linux 4.0.0-kali1-686-pae ...'  
142:            linux     /boot/vmlinuz-4.0.0-kali1-686-pae root=UUID=aba53f9f-ddd8-4b47-b965-cdde2e4cb720 ro initrd=/install/gtk/initrd.gz quiet  
143:            echo     'Loading initial ramdisk ...'  
144:            initrd     /boot/initrd.img-4.0.0-kali1-686-pae  
145:       }  
146:       menuentry 'Kali GNU/Linux, with Linux 4.0.0-kali1-686-pae (recovery mode)' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-kali1-686-pae-recovery-aba53f9f-ddd8-4b47-b965-cdde2e4cb720' {  
147:            load_video  
148:            insmod gzio  
149:            if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi  
150:            insmod part_msdos  
151:            insmod ext2  
152:            set root='hd0,msdos5'  
153:            if [ x$feature_platform_search_hint = xy ]; then  
154:             search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
155:            else  
156:             search --no-floppy --fs-uuid --set=root aba53f9f-ddd8-4b47-b965-cdde2e4cb720  
157:            fi  
158:            echo     'Loading Linux 4.0.0-kali1-686-pae ...'  
159:            linux     /boot/vmlinuz-4.0.0-kali1-686-pae root=UUID=aba53f9f-ddd8-4b47-b965-cdde2e4cb720 ro single initrd=/install/gtk/initrd.gz  
160:            echo     'Loading initial ramdisk ...'  
161:            initrd     /boot/initrd.img-4.0.0-kali1-686-pae  
162:       }  
163:  }  
164:  ### END /etc/grub.d/10_linux ###  
165:  ### BEGIN /etc/grub.d/20_linux_xen ###  
166:  ### END /etc/grub.d/20_linux_xen ###  
167:  ### BEGIN /etc/grub.d/30_os-prober ###  
168:  ### Modified by nu11secur1ty ###  
169:  menuentry 'CentOS release 6.7 (Final kernel-4.1.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-fb6a03d4-ee89-45c3-8dc5-aea9bce119b3' {  
170:       insmod part_msdos  
171:       insmod ext2  
172:       set root='hd0,msdos2'  
173:       if [ x$feature_platform_search_hint = xy ]; then  
174:        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
175:       else  
176:        search --no-floppy --fs-uuid --set=root fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
177:       fi  
178:       linux /boot/vmlinuz-4.1.1 ro root=UUID=fb6a03d4-ee89-45c3-8dc5-aea9bce119b3 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet  
179:       initrd /boot/initramfs-4.1.1.img  
180:  }  
181:  submenu 'Advanced options for CentOS release 6.7 (Final) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-fb6a03d4-ee89-45c3-8dc5-aea9bce119b3' {  
182:       menuentry 'CentOS (2.6.32-573.7.1.el6.x86_64) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.32-573.7.1.el6.x86_64--fb6a03d4-ee89-45c3-8dc5-aea9bce119b3' {  
183:            insmod part_msdos  
184:            insmod ext2  
185:            set root='hd0,msdos2'  
186:            if [ x$feature_platform_search_hint = xy ]; then  
187:             search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
188:            else  
189:             search --no-floppy --fs-uuid --set=root fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
190:            fi  
191:            linux /boot/vmlinuz-2.6.32-573.7.1.el6.x86_64 ro root=UUID=fb6a03d4-ee89-45c3-8dc5-aea9bce119b3 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet  
192:            initrd /boot/initramfs-2.6.32-573.7.1.el6.x86_64.img  
193:       }  
194:       menuentry 'CentOS 6 (2.6.32-504.el6.x86_64) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.32-504.el6.x86_64--fb6a03d4-ee89-45c3-8dc5-aea9bce119b3' {  
195:            insmod part_msdos  
196:            insmod ext2  
197:            set root='hd0,msdos2'  
198:            if [ x$feature_platform_search_hint = xy ]; then  
199:             search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
200:            else  
201:             search --no-floppy --fs-uuid --set=root fb6a03d4-ee89-45c3-8dc5-aea9bce119b3  
202:            fi  
203:            linux /boot/vmlinuz-2.6.32-504.el6.x86_64 ro root=UUID=fb6a03d4-ee89-45c3-8dc5-aea9bce119b3 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet  
204:            initrd /boot/initramfs-2.6.32-504.el6.x86_64.img  
205:       }  
206:  }  
207:  ### END /etc/grub.d/30_os-prober ###  
208:  ### BEGIN /etc/grub.d/30_uefi-firmware ###  
209:  ### END /etc/grub.d/30_uefi-firmware ###  
210:  ### BEGIN /etc/grub.d/40_custom ###  
211:  # This file provides an easy way to add custom menu entries. Simply type the  
212:  # menu entries you want to add after this comment. Be careful not to change  
213:  # the 'exec tail' line above.  
214:  ### END /etc/grub.d/40_custom ###  
215:  ### BEGIN /etc/grub.d/41_custom ###  
216:  if [ -f ${config_directory}/custom.cfg ]; then  
217:   source ${config_directory}/custom.cfg  
218:  elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then  
219:   source $prefix/custom.cfg;  
220:  fi  
221:  ### END /etc/grub.d/41_custom ###  

Коментари

Popular Posts

CVE-2021-44228

REPRODUCE OF THE VULNERABILITY =): Collaboration: silentsignal

DVWA - Brute Force (High Level) - Anti-CSRF Tokens

This is the final "how to" guide which brute focuses Damn Vulnerable Web Application (DVWA), this time on the high security level. It is an expansion from the "low" level (which is a straightforward HTTP GET form attack). The main login screen shares similar issues (brute force-able and with anti-CSRF tokens). The only other posting is the "medium" security level post (which deals with timing issues). For the final time, let's pretend we do not know any credentials for DVWA.... Let's play dumb and brute force DVWA... once and for all! TL;DR: Quick copy/paste 1: CSRF=$(curl -s -c dvwa.cookie "192.168.1.44/DVWA/login.php" | awk -F 'value=' '/user_token/ {print $2}' | cut -d "'" -f2) 2: SESSIONID=$(grep PHPSESSID dvwa.cookie | cut -d $'\t' -f7) 3: curl -s -b dvwa.cookie -d "username=admin&password=password&user_token=${CSRF}&Login=Login" "192.168.1

CVE-2022-21907

Donate if you are not shame!