LIVE FEED :: 11111110.00000000.00000000.00000001

Tugriceri Web Notes

Operational telemetry, Linux internals, forensic carving, and infrastructure automation war stories. by Emre Tugriceri.

88 Field Runbooks 30 System Taxonomies Archive: 2013 – 2026 SYS_HEALTH: OPTIMAL
Emre Tugriceri • • 1 min read
Uncategorized

TestDisk 6.12, Data Recovery Utility, May

TestDisk 6.12, Data Recovery Utility, May 2011
Christophe GRENIER
http://www.cgsecurity.org


TestDisk is free data recovery software designed to help recover lost
partitions and/or make non-booting disks bootable again when these symptoms
are caused by faulty software, certain types of viruses or human error.
It can also be used to repair some filesystem errors.

Information gathered during TestDisk use can be recorded for later
review. If you choose to create the text file, testdisk.log , it
will contain TestDisk options, technical information and various
outputs; including any folder/file names TestDisk was used to find and
list onscreen.

Use arrow keys to select, then press Enter key:
>[ Create ] Create a new log file
[ Append ] Append information to log file
[ No Log ] Don't record anything

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Uncategorized

android system and / remount

mount -o remount,ro -t yaffs2 /dev/block/stl9 /system
mount -o remount,rw -t yaffs2 /dev/block/stl9 /system

mount -o rw,remount -t rootfs /
mount -o ro,remount -t rootfs /

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux Security SELinux

SELinux FTP Home dir write permission

Connected to 127.0.0.1.
220 (vsFTPd 2.2.2)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:root): test1
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/var/ftp/test1
Login failed.
ftp> quit


[root@legion mnt]# getsebool ftp_home_dir
ftp_home_dir --> off
[root@legion mnt]# setsebool -P ftp_home_dir 1
[root@legion mnt]# getsebool ftp_home_dir
ftp_home_dir --> on


Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux

tacacs+ compile error

if you are getting this error when compiling tacacs+ , you should compile with --enable-maxsess option.

gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -g -O2 -pthread -MT maxsessint.o -MD -MP -MF .deps/maxsessint.Tpo -c -o maxsessint.o maxsessint.c
maxsessint.c: In function ‘maxsess_check_count’:
maxsessint.c:60: error: ‘S_maxsess’ undeclared (first use in this function)
maxsessint.c:60: error: (Each undeclared identifier is reported only once
maxsessint.c:60: error: for each function it appears in.)
gmake[1]: *** [maxsessint.o] Error 1
gmake[1]: Leaving directory `/usr/local/tacacs+-F5.0.0a1'
make: *** [all] Error 2

./configure --sysconfdir=/etc --enable-maxsess

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Uncategorized

gnokii sms read from Huawei Mobile Connect Express E800

[root@etugriceri ~]# gnokii --showsmsfolderstatus
GNOKII Version 0.6.29
No. Name Id #Msg
========================================================
0 Internal memory ME 1
1 Combined ME and SIM phonebook MT 1
2 SIM card SM 4
3 SMS Status Reports SR 4

[root@etugriceri ~]# gnokii --getsms SM 1 end
GNOKII Version 0.6.29
1. Inbox Message (Read)


Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux ZFS

ZFS deduplication test on Fedora 15 Linux

I recently tested ZFS deduplication test on Fedora 15 Linux. This is my test script. I tested only text file. For final report, other file format tests is unnecessary. [root@etugriceri fast]# du -ch 0/textfile 6.5K 0/textfile 6.5K total [root@etugriceri fast]# zpool list dimmpool NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT dimmpool 294M 262M 31.8M 89%1.89xONLINE [root@etugriceri fast]# cat ded.sh a="1" while [ $a -lt "1000" ]; do mkdir $a let b=$a-1 cp $b/textfile $a dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile let a=$a+1 done ##### [root@etugriceri fast]# zpool list dimmpool NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT dimmpool 294M 132M 162M 45%1.00xONLINE - [root@etugriceri fast]# cat ded.sh a="1" while [ $a -lt "10000" ]; do mkdir $a let b=$a-1 cp 0/textfile $a dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile dd if=/dev/urandom count=128 bs=1 2>&1 | md5sum >> $a/textfile cat 0/textfile >> $a/textfile let a=$a+1 done

Comments (0) Read Playbook →