Examining an ELF binary with binutils

$strings a.out
/lib64/ld-linux-x86-64.so.2
libc.so.6
printf
__libc_start_main
__gmon_start__
GLIBC_2.2.5
fffff.
[]A\A]A^A_
hello
;*3$"
GCC: (Debian 4.9.2-10) 4.9.2
GCC: (Debian 4.8.3-13) 4.8.3
hello.c
long unsigned int
short unsigned int
short int
GNU C 4.9.2 -mtune=generic -march=x86-64 -g
unsigned char
long int
sizetype
main
hello.c
/home/jeffrin
.symtab
.strtab
.shstrtab
.interp
.note.ABI-tag
.note.gnu.build-id
.gnu.hash
.dynsym
.dynstr
.gnu.version
.gnu.version_r
.rela.dyn
.rela.plt
.init
.text
.fini
.rodata
.eh_frame_hdr
.eh_frame
.init_array
.fini_array
.jcr
.dynamic
.got
.got.plt
.data
.bss
.comment
.debug_aranges
.debug_info
.debug_abbrev
.debug_line
.debug_str
crtstuff.c
__JCR_LIST__
deregister_tm_clones
register_tm_clones
__do_global_dtors_aux
completed.6661
__do_global_dtors_aux_fini_array_entry
frame_dummy
__frame_dummy_init_array_entry
hello.c
__FRAME_END__
__JCR_END__
__init_array_end
_DYNAMIC
__init_array_start
_GLOBAL_OFFSET_TABLE_
__libc_csu_fini
_ITM_deregisterTMCloneTable
data_start
_edata
_fini
printf@@GLIBC_2.2.5
__libc_start_main@@GLIBC_2.2.5
__data_start
__gmon_start__
__dso_handle
_IO_stdin_used
__libc_csu_init
_end
_start
__bss_start
main
_Jv_RegisterClasses
__TMC_END__
_ITM_registerTMCloneTable
_init
$

6 Framed photos was added to the collection

6 Framed photos was added to the collection
4 small ones and 2 relatively bigger ones
All the photos are related to NATIONAL GEOGRAPHIC
Hacking with listing local system locks

File locking is a mechanism that restricts access to a computer file
by allowing only one user or process access at any specific time.
Systems implement locking to prevent the classic interceding update
scenario (see race condition).



lslocks lists information about all the currently held file locks in a Linux system.


$lslocks -p 23897
$lslocks -p 1404
$lslocks -p 15099
$lslocks -p 17229
COMMAND           PID  TYPE SIZE MODE  M      START        END PATH
chromium        17229 POSIX  68K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Web Data
chromium        17229 POSIX   0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Local Extension Settings
chromium        17229 POSIX 140K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/History
chromium        17229 POSIX 1.5M WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Favicons
chromium        17229 POSIX  20K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Shortcuts
chromium        17229 POSIX  12K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Login Data
chromium        17229 POSIX   0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Extension Rules/LOCK
chromium        17229 POSIX   0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/File System/Origins/LOCK
chromium        17229 POSIX   0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Session Storage/LOCK
chromium        17229 POSIX   0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Extension State/LOCK
$lslocks 
COMMAND           PID  TYPE  SIZE MODE  M      START        END PATH
atd               580 POSIX    0B WRITE 0          0          0 /run
cron              614 FLOCK    0B WRITE 0          0          0 /run
tracker-miner-f  1505 POSIX 27.1M READ  0 1073741826 1073742335 /home/jeffrin/.cache/tracker/meta.db
tracker-miner-f  1505 POSIX   32K READ  0        128        128 /home/jeffrin/.cache/tracker/meta.db-shm
chromium        17229 POSIX   68K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Web Data
chromium        17229 POSIX    0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Local Extension Setting
chromium        17229 POSIX  140K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/History
chromium        17229 POSIX  1.5M WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Favicons
chromium        17229 POSIX   20K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Shortcuts
chromium        17229 POSIX   12K WRITE 0 1073741824 1073742335 /home/jeffrin/.config/chromium/Default/Login Data
(unknown)         543 FLOCK    0B WRITE 0          0          0 /run
lpd               594 FLOCK    0B WRITE 0          0          0 /run
runsv             670 FLOCK    0B WRITE 0          0          0 /
tracker-store    1512 POSIX 27.1M READ  0 1073741826 1073742335 /home/jeffrin/.cache/tracker/meta.db
tracker-store    1512 POSIX   32K READ  0        128        128 /home/jeffrin/.cache/tracker/meta.db-shm
chromium        17229 POSIX    0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Extension Rules/LOCK
chromium        17229 POSIX    0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/File System/Origins/LOC
chromium        17229 POSIX    0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Session Storage/LOCK
chromium        17229 POSIX    0B WRITE 0          0          0 /home/jeffrin/.config/chromium/Default/Extension State/LOCK
$

Hacking with an arbitrary precision calculator

dc  is a reverse-polish desk calculator which supports unlimited preci‐
sion arithmetic.  It also allows you to define and call  macros.   Nor‐
mally  dc  reads  from the standard input; if any command arguments are
given to it, they are filenames, and dc reads and executes the contents
of  the files before reading from standard input.  All normal output is
to standard output; all error output is to standard error.

A reverse-polish calculator stores numbers on a stack.  Entering a num‐
ber  pushes  it  on the stack.  Arithmetic operations pop arguments off
the stack and push the results.

To enter a number in dc, type the digits (using upper  case  letters  A
through  F as "digits" when working with input bases greater than ten),
with an optional decimal point.  Exponential notation is not supported.
To  enter a negative number, begin the number with ``_''.  ``-'' cannot
be used for this, as it is a binary operator for  subtraction  instead.
To  enter  two numbers in succession, separate them with spaces or new‐
lines.  These have no meaning as commands.





$dc
1234
f
1234
2322
f
2322
1234
p * 2
2322
f
2
2865348
f
2
2865348
2 * p
4
f
4
2865348
p * 1
4
p
1
p
1
f
1
11461392
dc:
dc: stack empty
f
$

Ultimate Survival Alaska – Competitors :30

Introducing The Linux Foundation Certification Program




Copyright © 2009,  2010,  2011,  2012,  2013, 2014, 2015     BeautifulWork Project    e-mail:  ahiliation@yahoo.co.in
BeautifulWork Project comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.