Install eid software on Debian 9 Stretch

Verify OS version
=================

guru@home:~/utils$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Installation of Package
=======================

guru@home:~/utils$ wget https://eid.belgium.be/sites/default/files/software/eid-archive_2017.4_all.deb
--2017-07-06 08:20:21--  https://eid.belgium.be/sites/default/files/software/eid-archive_2017.4_all.deb
Resolving eid.belgium.be (eid.belgium.be)... 193.191.245.244
Connecting to eid.belgium.be (eid.belgium.be)|193.191.245.244|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7568 (7.4K) [application/octet-stream]
Saving to: ‘eid-archive_2017.4_all.deb’

eid-archive_2017.4_all.deb      100%[=====================================================>]   7.39K  --.-KB/s    in 0.06s   

2017-07-06 08:20:21 (129 KB/s) - ‘eid-archive_2017.4_all.deb’ saved [7568/7568]
guru@home:~/utils$ sudo dpkg -i eid-archive_2017.4_all.deb 
Selecting previously unselected package eid-archive.
(Reading database ... 115742 files and directories currently installed.)
Preparing to unpack eid-archive_2017.4_all.deb ...
Unpacking eid-archive (2017.4) ...
Setting up eid-archive (2017.4) ...

Creating config file /etc/apt/sources.list.d/eid.list with new version
Repository enabled, keys installed. Please run "apt-get update" followed by
"apt-get install eid-mw eid-viewer" to install the middleware and the viewer, respectively.
guru@home:~/utils$ cat /etc/apt/sources.list.d/eid.list 
# To enable the candidate repository, uncomment the below line, put "deb" in
# front of it, and run "dpkg-reconfigure eid-archive" to enable the archive
# key.
#
# The candidate repository contains unsupported prerelease packages. Use at
# your own risk.
#
# Note, however, that the candidate repository is usually empty; it is
# used when we're preparing (and testing) a new release. Therefore, it
# should be relatively safe.
#
# There is also another "continuous" repository, for which packages get
# recompiled for each and every change to the source. This isn't listed
# (so that it can't be accidentally enabled), but the configuration is
# the same as the below, with "candidate" replaced by "continuous".
#
# http://files.eid.belgium.be/debian candidate/stretch main
# NOTE: files2.eid.belgium.be is a mirror for the main repository ONLY.
# That is, it does not contain the continuous or candidate repositories.

# The regular repository with released packages. This is what you should
# use.
deb http://files.eid.belgium.be/debian stretch main
deb http://files2.eid.belgium.be/debian stretch main
guru@home:~/utils$ sudo apt-get update
Get:1 http://files2.eid.belgium.be/debian stretch InRelease [3,916 B]
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                    
Hit:3 http://dl.google.com/linux/chrome/deb stable Release               
Get:4 http://files.eid.belgium.be/debian stretch InRelease [3,916 B]                          
Get:5 http://files2.eid.belgium.be/debian stretch/main amd64 Packages [3,773 B]                                            
Ign:6 http://deb.debian.org/debian jessie InRelease                                                                          
Hit:8 http://deb.debian.org/debian jessie-updates InRelease                                           
Ign:9 http://ftp.be.debian.org/debian stretch InRelease                                               
Hit:10 http://ftp.be.debian.org/debian jessie-backports InRelease                      
Hit:11 http://deb.debian.org/debian jessie Release                                                          
Hit:12 http://ftp.be.debian.org/debian stretch Release                                                      
Get:13 http://files.eid.belgium.be/debian stretch/main amd64 Packages [3,773 B]                             
Hit:14 https://download.jitsi.org unstable/ InRelease                                             
Hit:16 http://security.debian.org/debian-security stretch/updates InRelease
Hit:17 http://security.debian.org jessie/updates InRelease
Fetched 15.4 kB in 0s (26.4 kB/s)
Reading package lists... Done
guru@home:~/utils$ sudo apt-cache policy eid-viewer eid-mw
eid-viewer:
  Installed: (none)
  Candidate: 4.2.5v4.2.5-0stretch1
  Version table:
     4.2.5v4.2.5-0stretch1 500
        500 http://files.eid.belgium.be/debian stretch/main amd64 Packages
        500 http://files2.eid.belgium.be/debian stretch/main amd64 Packages
eid-mw:
  Installed: (none)
  Candidate: 4.2.5v4.2.5-0stretch1
  Version table:
     4.2.5v4.2.5-0stretch1 500
        500 http://files.eid.belgium.be/debian stretch/main amd64 Packages
        500 http://files2.eid.belgium.be/debian stretch/main amd64 Packages

Continue with apt-get
=====================

guru@home:~/utils$ sudo apt-get install eid-mw
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  beid-mozilla-extension libacr38u libbeidpkcs11-0 libbeidpkcs11-bin libccid pcscd
Suggested packages:
  pcmciautils
The following NEW packages will be installed:
  beid-mozilla-extension eid-mw libacr38u libbeidpkcs11-0 libbeidpkcs11-bin libccid pcscd
0 upgraded, 7 newly installed, 0 to remove and 7 not upgraded.
Need to get 636 kB of archives.
After this operation, 1,533 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://files.eid.belgium.be/debian stretch/main amd64 libbeidpkcs11-bin amd64 4.2.5v4.2.5-0stretch1 [20.7 kB]
Get:2 http://files.eid.belgium.be/debian stretch/main amd64 libbeidpkcs11-0 amd64 4.2.5v4.2.5-0stretch1 [157 kB]        
Get:3 http://deb.debian.org/debian jessie/main amd64 libacr38u amd64 1.7.11-1 [20.9 kB]         
Get:4 http://files.eid.belgium.be/debian stretch/main amd64 beid-mozilla-extension all 4.2.5v4.2.5-0stretch1 [25.5 kB]
Get:5 http://files.eid.belgium.be/debian stretch/main amd64 eid-mw amd64 4.2.5v4.2.5-0stretch1 [1,766 B]
Get:6 http://ftp.be.debian.org/debian stretch/main amd64 libccid amd64 1.4.26-1 [314 kB]
Get:7 http://ftp.be.debian.org/debian stretch/main amd64 pcscd amd64 1.8.20-1 [95.9 kB]
Fetched 636 kB in 0s (951 kB/s) 
Selecting previously unselected package libbeidpkcs11-bin.
(Reading database ... 115750 files and directories currently installed.)
Preparing to unpack .../0-libbeidpkcs11-bin_4.2.5v4.2.5-0stretch1_amd64.deb ...
Unpacking libbeidpkcs11-bin (4.2.5v4.2.5-0stretch1) ...
Selecting previously unselected package libbeidpkcs11-0:amd64.
Preparing to unpack .../1-libbeidpkcs11-0_4.2.5v4.2.5-0stretch1_amd64.deb ...
Unpacking libbeidpkcs11-0:amd64 (4.2.5v4.2.5-0stretch1) ...
Selecting previously unselected package beid-mozilla-extension.
Preparing to unpack .../2-beid-mozilla-extension_4.2.5v4.2.5-0stretch1_all.deb ...
Unpacking beid-mozilla-extension (4.2.5v4.2.5-0stretch1) ...
Selecting previously unselected package libccid.
Preparing to unpack .../3-libccid_1.4.26-1_amd64.deb ...
Unpacking libccid (1.4.26-1) ...
Selecting previously unselected package libacr38u.
Preparing to unpack .../4-libacr38u_1.7.11-1_amd64.deb ...
Unpacking libacr38u (1.7.11-1) ...
Selecting previously unselected package pcscd.
Preparing to unpack .../5-pcscd_1.8.20-1_amd64.deb ...
Unpacking pcscd (1.8.20-1) ...
Selecting previously unselected package eid-mw.
Preparing to unpack .../6-eid-mw_4.2.5v4.2.5-0stretch1_amd64.deb ...
Unpacking eid-mw (4.2.5v4.2.5-0stretch1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25) ...
Setting up libbeidpkcs11-bin (4.2.5v4.2.5-0stretch1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libccid (1.4.26-1) ...
Setting up libacr38u (1.7.11-1) ...
Setting up pcscd (1.8.20-1) ...
Created symlink /etc/systemd/system/sockets.target.wants/pcscd.socket → /lib/systemd/system/pcscd.socket.
Setting up libbeidpkcs11-0:amd64 (4.2.5v4.2.5-0stretch1) ...
Setting up beid-mozilla-extension (4.2.5v4.2.5-0stretch1) ...
Setting up eid-mw (4.2.5v4.2.5-0stretch1) ...
Processing triggers for systemd (232-25) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...

Location installed items
========================

guru@home:~/utils$ sudo updatedb
guru@home:~/utils$ whereis eid-mw
eid-mw: /usr/lib/eid-mw
guru@home:~/utils$ locate eid-mw
/usr/bin/about-eid-mw
/usr/lib/eid-mw
/usr/lib/eid-mw/beid-askaccess
/usr/lib/eid-mw/beid-askpin
/usr/lib/eid-mw/beid-badpin
/usr/lib/eid-mw/beid-changepin
/usr/lib/eid-mw/beid-spr-askpin
/usr/lib/eid-mw/beid-spr-changepin
/usr/share/doc/eid-mw
/usr/share/doc/eid-mw/changelog.Debian.gz
/usr/share/doc/eid-mw/copyright
/usr/share/locale/de/LC_MESSAGES/about-eid-mw.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/about-eid-mw.mo
/usr/share/locale/en@quot/LC_MESSAGES/about-eid-mw.mo
/usr/share/locale/fr/LC_MESSAGES/about-eid-mw.mo
/usr/share/locale/nl/LC_MESSAGES/about-eid-mw.mo
/var/cache/apt/archives/eid-mw_4.2.5v4.2.5-0stretch1_amd64.deb
/var/lib/dpkg/info/eid-mw.list
/var/lib/dpkg/info/eid-mw.md5sums

Dependencies
============

guru@home:~/utils$ sudo apt-cache rdepends eid-mw
eid-mw
Reverse Depends:
  beid-mozilla-extension
  libbeidpkcs11-dev
  libbeidpkcs11-bin
  libbeidpkcs11-0
guru@home:~/utils$ sudo apt-cache depends eid-mw
eid-mw
  Depends: pcscd
  Depends: libbeidpkcs11-0
  Depends: beid-mozilla-extension
  Recommends: libccid
  Recommends: libacr38u
guru@home:~/utils$ sudo aptitude why eid-mw
Manually installed, current version 4.2.5v4.2.5-0stretch1, priority optional
No dependencies require to install eid-mw

guru@home:~/utils$ sudo apt-cache showpkg eid-mw
Package: eid-mw
Versions: 
4.2.5v4.2.5-0stretch1 (/var/lib/apt/lists/files.eid.belgium.be_debian_dists_stretch_main_binary-amd64_Packages) (/var/lib/apt/lists/files2.eid.belgium.be_debian_dists_stretch_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/files.eid.belgium.be_debian_dists_stretch_main_binary-amd64_Packages
                  MD5: 15a7ab7b686bdae0a3a345ed67d50b99


Reverse Depends: 
  beid-mozilla-extension,eid-mw 4.0.6r1508
  libbeidpkcs11-dev,eid-mw 4.0.6r1508
  libbeidpkcs11-bin,eid-mw 4.0.6r1508
  libbeidpkcs11-0,eid-mw 4.0.6r1508
Dependencies: 
4.2.5v4.2.5-0stretch1 - pcscd (0 (null)) libbeidpkcs11-0 (0 (null)) beid-mozilla-extension (0 (null)) libccid (0 (null)) libacr38u (0 (null)) 
Provides: 
4.2.5v4.2.5-0stretch1 - 
Reverse Provides: 

guru@home:~/utils$ objdump -x /usr/lib/eid-mw/beid-* | grep -i 'needed'
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6

Objectdump
==========

guru@home:~/utils$ objdump -x /usr/lib/eid-mw/beid-*

/usr/lib/eid-mw/beid-askaccess:     file format elf64-x86-64
/usr/lib/eid-mw/beid-askaccess
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00000000000010a0

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x00000000000015ac memsz 0x00000000000015ac flags r-x
    LOAD off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**21
         filesz 0x00000000000003e0 memsz 0x0000000000000408 flags rw-
 DYNAMIC off    0x0000000000001d20 vaddr 0x0000000000201d20 paddr 0x0000000000201d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x0000000000001408 vaddr 0x0000000000001408 paddr 0x0000000000001408 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x0000000000000d20
  FINI                 0x0000000000001304
  INIT_ARRAY           0x0000000000201d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000201d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x0000000000000650
  SYMTAB               0x00000000000002d8
  STRSZ                0x0000000000000315
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000202000
  PLTRELSZ             0x0000000000000240
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000000ae0
  RELA                 0x00000000000009f0
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x00000000000009b0
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000966
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 04 GLIBC_2.4
    0x09691974 0x00 03 GLIBC_2.3.4
    0x09691a75 0x00 02 GLIBC_2.2.5

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000378  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       00000315  0000000000000650  0000000000000650  00000650  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  0000004a  0000000000000966  0000000000000966  00000966  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000040  00000000000009b0  00000000000009b0  000009b0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  00000000000009f0  00000000000009f0  000009f0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     00000240  0000000000000ae0  0000000000000ae0  00000ae0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0000000000000d20  0000000000000d20  00000d20  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          00000190  0000000000000d40  0000000000000d40  00000d40  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000000ed0  0000000000000ed0  00000ed0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000422  0000000000000ee0  0000000000000ee0  00000ee0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  0000000000001304  0000000000001304  00001304  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       000000f8  0000000000001310  0000000000001310  00001310  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 00000044  0000000000001408  0000000000001408  00001408  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     0000015c  0000000000001450  0000000000001450  00001450  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000201d08  0000000000201d08  00001d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000201d10  0000000000201d10  00001d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000201d18  0000000000201d18  00001d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000201d20  0000000000201d20  00001d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000201fd0  0000000000201fd0  00001fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      000000d8  0000000000202000  0000000000202000  00002000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  00000000002020d8  00000000002020d8  000020d8  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  0000000000202100  0000000000202100  000020e8  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  000020e8  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols



/usr/lib/eid-mw/beid-askpin:     file format elf64-x86-64
/usr/lib/eid-mw/beid-askpin
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0000000000002250

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x0000000000002e1c memsz 0x0000000000002e1c flags r-x
    LOAD off    0x0000000000003d08 vaddr 0x0000000000203d08 paddr 0x0000000000203d08 align 2**21
         filesz 0x0000000000000510 memsz 0x0000000000000528 flags rw-
 DYNAMIC off    0x0000000000003d20 vaddr 0x0000000000203d20 paddr 0x0000000000203d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x00000000000029e8 vaddr 0x00000000000029e8 paddr 0x00000000000029e8 align 2**2
         filesz 0x000000000000009c memsz 0x000000000000009c flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000003d08 vaddr 0x0000000000203d08 paddr 0x0000000000203d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x0000000000001780
  FINI                 0x00000000000028a4
  INIT_ARRAY           0x0000000000203d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000203d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x00000000000009e0
  SYMTAB               0x00000000000002d8
  STRSZ                0x0000000000000609
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000204000
  PLTRELSZ             0x00000000000005d0
  PLTREL               0x0000000000000007
  JMPREL               0x00000000000011b0
  RELA                 0x00000000000010c0
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x0000000000001080
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000fea
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 04 GLIBC_2.4
    0x09691974 0x00 03 GLIBC_2.3.4
    0x09691a75 0x00 02 GLIBC_2.2.5

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000708  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       00000609  00000000000009e0  00000000000009e0  000009e0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  00000096  0000000000000fea  0000000000000fea  00000fea  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000040  0000000000001080  0000000000001080  00001080  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  00000000000010c0  00000000000010c0  000010c0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     000005d0  00000000000011b0  00000000000011b0  000011b0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0000000000001780  0000000000001780  00001780  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          000003f0  00000000000017a0  00000000000017a0  000017a0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000001b90  0000000000001b90  00001b90  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000d02  0000000000001ba0  0000000000001ba0  00001ba0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  00000000000028a4  00000000000028a4  000028a4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       00000138  00000000000028b0  00000000000028b0  000028b0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 0000009c  00000000000029e8  00000000000029e8  000029e8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     00000394  0000000000002a88  0000000000002a88  00002a88  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000203d08  0000000000203d08  00003d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000203d10  0000000000203d10  00003d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000203d18  0000000000203d18  00003d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000203d20  0000000000203d20  00003d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000203fd0  0000000000203fd0  00003fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      00000208  0000000000204000  0000000000204000  00004000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  0000000000204208  0000000000204208  00004208  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  0000000000204220  0000000000204220  00004218  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  00004218  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols



/usr/lib/eid-mw/beid-badpin:     file format elf64-x86-64
/usr/lib/eid-mw/beid-badpin
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00000000000011b0

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x0000000000001764 memsz 0x0000000000001764 flags r-x
    LOAD off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**21
         filesz 0x00000000000003f8 memsz 0x0000000000000408 flags rw-
 DYNAMIC off    0x0000000000001d20 vaddr 0x0000000000201d20 paddr 0x0000000000201d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x00000000000015c0 vaddr 0x00000000000015c0 paddr 0x00000000000015c0 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x0000000000000df0
  FINI                 0x0000000000001414
  INIT_ARRAY           0x0000000000201d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000201d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x0000000000000698
  SYMTAB               0x00000000000002d8
  STRSZ                0x000000000000033f
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000202000
  PLTRELSZ             0x0000000000000288
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000000b68
  RELA                 0x0000000000000a78
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x0000000000000a28
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x00000000000009d8
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 05 GLIBC_2.4
    0x0d696913 0x00 04 GLIBC_2.3
    0x09691974 0x00 03 GLIBC_2.3.4
    0x09691a75 0x00 02 GLIBC_2.2.5

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       000003c0  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       0000033f  0000000000000698  0000000000000698  00000698  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  00000050  00000000000009d8  00000000000009d8  000009d8  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000050  0000000000000a28  0000000000000a28  00000a28  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  0000000000000a78  0000000000000a78  00000a78  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     00000288  0000000000000b68  0000000000000b68  00000b68  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0000000000000df0  0000000000000df0  00000df0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          000001c0  0000000000000e10  0000000000000e10  00000e10  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000000fd0  0000000000000fd0  00000fd0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000432  0000000000000fe0  0000000000000fe0  00000fe0  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  0000000000001414  0000000000001414  00001414  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       000001a0  0000000000001420  0000000000001420  00001420  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 00000044  00000000000015c0  00000000000015c0  000015c0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     0000015c  0000000000001608  0000000000001608  00001608  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000201d08  0000000000201d08  00001d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000201d10  0000000000201d10  00001d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000201d18  0000000000201d18  00001d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000201d20  0000000000201d20  00001d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000201fd0  0000000000201fd0  00001fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      000000f0  0000000000202000  0000000000202000  00002000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  00000000002020f0  00000000002020f0  000020f0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  0000000000202100  0000000000202100  00002100  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  00002100  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols



/usr/lib/eid-mw/beid-changepin:     file format elf64-x86-64
/usr/lib/eid-mw/beid-changepin
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0000000000001ec0

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x00000000000028dc memsz 0x00000000000028dc flags r-x
    LOAD off    0x0000000000002d08 vaddr 0x0000000000202d08 paddr 0x0000000000202d08 align 2**21
         filesz 0x00000000000004c0 memsz 0x00000000000004e8 flags rw-
 DYNAMIC off    0x0000000000002d20 vaddr 0x0000000000202d20 paddr 0x0000000000202d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x0000000000002588 vaddr 0x0000000000002588 paddr 0x0000000000002588 align 2**2
         filesz 0x000000000000006c memsz 0x000000000000006c flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000002d08 vaddr 0x0000000000202d08 paddr 0x0000000000202d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x00000000000014f8
  FINI                 0x0000000000002414
  INIT_ARRAY           0x0000000000202d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000202d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x00000000000008f0
  SYMTAB               0x00000000000002d8
  STRSZ                0x000000000000055f
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000203000
  PLTRELSZ             0x00000000000004e0
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000001018
  RELA                 0x0000000000000f28
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x0000000000000ed8
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000e50
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 05 GLIBC_2.4
    0x0d696913 0x00 04 GLIBC_2.3
    0x09691a75 0x00 03 GLIBC_2.2.5
    0x09691974 0x00 02 GLIBC_2.3.4

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000618  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       0000055f  00000000000008f0  00000000000008f0  000008f0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  00000082  0000000000000e50  0000000000000e50  00000e50  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000050  0000000000000ed8  0000000000000ed8  00000ed8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  0000000000000f28  0000000000000f28  00000f28  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     000004e0  0000000000001018  0000000000001018  00001018  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  00000000000014f8  00000000000014f8  000014f8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          00000350  0000000000001510  0000000000001510  00001510  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000001860  0000000000001860  00001860  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000ba2  0000000000001870  0000000000001870  00001870  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  0000000000002414  0000000000002414  00002414  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       00000168  0000000000002420  0000000000002420  00002420  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 0000006c  0000000000002588  0000000000002588  00002588  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     000002e4  00000000000025f8  00000000000025f8  000025f8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000202d08  0000000000202d08  00002d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000202d10  0000000000202d10  00002d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000202d18  0000000000202d18  00002d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000202d20  0000000000202d20  00002d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000202fd0  0000000000202fd0  00002fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      000001b8  0000000000203000  0000000000203000  00003000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  00000000002031b8  00000000002031b8  000031b8  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  00000000002031e0  00000000002031e0  000031c8  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  000031c8  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols



/usr/lib/eid-mw/beid-spr-askpin:     file format elf64-x86-64
/usr/lib/eid-mw/beid-spr-askpin
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0000000000001150

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x00000000000016e4 memsz 0x00000000000016e4 flags r-x
    LOAD off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**21
         filesz 0x00000000000003e8 memsz 0x0000000000000408 flags rw-
 DYNAMIC off    0x0000000000001d20 vaddr 0x0000000000201d20 paddr 0x0000000000201d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x0000000000001510 vaddr 0x0000000000001510 paddr 0x0000000000001510 align 2**2
         filesz 0x000000000000004c memsz 0x000000000000004c flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x0000000000000d68
  FINI                 0x00000000000013c4
  INIT_ARRAY           0x0000000000201d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000201d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x0000000000000668
  SYMTAB               0x00000000000002d8
  STRSZ                0x000000000000032b
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000202000
  PLTRELSZ             0x0000000000000258
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000000b10
  RELA                 0x0000000000000a20
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x00000000000009e0
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000994
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 04 GLIBC_2.4
    0x09691974 0x00 03 GLIBC_2.3.4
    0x09691a75 0x00 02 GLIBC_2.2.5

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000390  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       0000032b  0000000000000668  0000000000000668  00000668  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  0000004c  0000000000000994  0000000000000994  00000994  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000040  00000000000009e0  00000000000009e0  000009e0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  0000000000000a20  0000000000000a20  00000a20  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     00000258  0000000000000b10  0000000000000b10  00000b10  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0000000000000d68  0000000000000d68  00000d68  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          000001a0  0000000000000d80  0000000000000d80  00000d80  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000000f20  0000000000000f20  00000f20  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000492  0000000000000f30  0000000000000f30  00000f30  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  00000000000013c4  00000000000013c4  000013c4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       00000140  00000000000013d0  00000000000013d0  000013d0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 0000004c  0000000000001510  0000000000001510  00001510  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     00000184  0000000000001560  0000000000001560  00001560  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000201d08  0000000000201d08  00001d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000201d10  0000000000201d10  00001d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000201d18  0000000000201d18  00001d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000201d20  0000000000201d20  00001d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000201fd0  0000000000201fd0  00001fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      000000e0  0000000000202000  0000000000202000  00002000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  00000000002020e0  00000000002020e0  000020e0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  0000000000202100  0000000000202100  000020f0  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  000020f0  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols



/usr/lib/eid-mw/beid-spr-changepin:     file format elf64-x86-64
/usr/lib/eid-mw/beid-spr-changepin
architecture: i386:x86-64, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0000000000001150

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001f8 memsz 0x00000000000001f8 flags r-x
  INTERP off    0x0000000000000238 vaddr 0x0000000000000238 paddr 0x0000000000000238 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
         filesz 0x00000000000016ec memsz 0x00000000000016ec flags r-x
    LOAD off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**21
         filesz 0x00000000000003e8 memsz 0x0000000000000408 flags rw-
 DYNAMIC off    0x0000000000001d20 vaddr 0x0000000000201d20 paddr 0x0000000000201d20 align 2**3
         filesz 0x00000000000002b0 memsz 0x00000000000002b0 flags rw-
    NOTE off    0x0000000000000254 vaddr 0x0000000000000254 paddr 0x0000000000000254 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
EH_FRAME off    0x0000000000001518 vaddr 0x0000000000001518 paddr 0x0000000000001518 align 2**2
         filesz 0x000000000000004c memsz 0x000000000000004c flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000001d08 vaddr 0x0000000000201d08 paddr 0x0000000000201d08 align 2**0
         filesz 0x00000000000002f8 memsz 0x00000000000002f8 flags r--

Dynamic Section:
  NEEDED               libpcsclite.so.1
  NEEDED               libgtk-3.so.0
  NEEDED               libgdk-3.so.0
  NEEDED               libpangocairo-1.0.so.0
  NEEDED               libpango-1.0.so.0
  NEEDED               libatk-1.0.so.0
  NEEDED               libcairo-gobject.so.2
  NEEDED               libcairo.so.2
  NEEDED               libgdk_pixbuf-2.0.so.0
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  INIT                 0x0000000000000d68
  FINI                 0x00000000000013c4
  INIT_ARRAY           0x0000000000201d08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000201d10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x0000000000000298
  STRTAB               0x0000000000000668
  SYMTAB               0x00000000000002d8
  STRSZ                0x000000000000032b
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000202000
  PLTRELSZ             0x0000000000000258
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000000b10
  RELA                 0x0000000000000a20
  RELASZ               0x00000000000000f0
  RELAENT              0x0000000000000018
  FLAGS_1              0x0000000008000000
  VERNEED              0x00000000000009e0
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000994
  RELACOUNT            0x0000000000000003

Version References:
  required from libc.so.6:
    0x0d696914 0x00 04 GLIBC_2.4
    0x09691974 0x00 03 GLIBC_2.3.4
    0x09691a75 0x00 02 GLIBC_2.2.5

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000000238  0000000000000238  00000238  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  1 .note.ABI-tag 00000020  0000000000000254  0000000000000254  00000254  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .note.gnu.build-id 00000024  0000000000000274  0000000000000274  00000274  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .gnu.hash     0000003c  0000000000000298  0000000000000298  00000298  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .dynsym       00000390  00000000000002d8  00000000000002d8  000002d8  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .dynstr       0000032b  0000000000000668  0000000000000668  00000668  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .gnu.version  0000004c  0000000000000994  0000000000000994  00000994  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 .gnu.version_r 00000040  00000000000009e0  00000000000009e0  000009e0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .rela.dyn     000000f0  0000000000000a20  0000000000000a20  00000a20  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .rela.plt     00000258  0000000000000b10  0000000000000b10  00000b10  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .init         00000017  0000000000000d68  0000000000000d68  00000d68  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 11 .plt          000001a0  0000000000000d80  0000000000000d80  00000d80  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 12 .plt.got      00000008  0000000000000f20  0000000000000f20  00000f20  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 13 .text         00000492  0000000000000f30  0000000000000f30  00000f30  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 14 .fini         00000009  00000000000013c4  00000000000013c4  000013c4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 15 .rodata       00000148  00000000000013d0  00000000000013d0  000013d0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 .eh_frame_hdr 0000004c  0000000000001518  0000000000001518  00001518  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 17 .eh_frame     00000184  0000000000001568  0000000000001568  00001568  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 18 .init_array   00000008  0000000000201d08  0000000000201d08  00001d08  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 19 .fini_array   00000008  0000000000201d10  0000000000201d10  00001d10  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 20 .jcr          00000008  0000000000201d18  0000000000201d18  00001d18  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 21 .dynamic      000002b0  0000000000201d20  0000000000201d20  00001d20  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 22 .got          00000030  0000000000201fd0  0000000000201fd0  00001fd0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 23 .got.plt      000000e0  0000000000202000  0000000000202000  00002000  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 24 .data         00000010  00000000002020e0  00000000002020e0  000020e0  2**3
                  CONTENTS, ALLOC, LOAD, DATA
 25 .bss          00000010  0000000000202100  0000000000202100  000020f0  2**5
                  ALLOC
 26 .gnu_debuglink 00000034  0000000000000000  0000000000000000  000020f0  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
no symbols

while do read done in one line

This is a simple but useful loop to process an input file if none can be provide with a command option for a certain program. E.g. use every IP address in a file
To be used in bash when you don’t want to write a script just yet.

guru@home:~/utils$ while read -r LINE; do echo "$LINE";sleep 1; done < targethosts.txt
172.16.1.254
172.16.3.11
172.16.3.41
172.16.3.51
172.16.3.61
172.16.3.71
172.16.3.111
172.16.3.253
172.16.4.74
172.16.4.79
172.16.4.80
172.16.4.155
172.16.4.254
172.16.4.76
172.16.4.76
172.16.4.91

Instead of an ordinary echo you would of course use another command.

E.g. a simple ping to each host

guru@home:~/utils$ while read -r LINE; do ping -c2 "$LINE"; done < targethosts.txt
PING 172.16.1.254 (172.16.1.254) 56(84) bytes of data.
64 bytes from 172.16.1.254: icmp_seq=1 ttl=64 time=0.612 ms
64 bytes from 172.16.1.254: icmp_seq=2 ttl=64 time=0.516 ms

--- 172.16.1.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1009ms
rtt min/avg/max/mdev = 0.516/0.564/0.612/0.048 ms
PING 172.16.3.11 (172.16.3.11) 56(84) bytes of data.
64 bytes from 172.16.3.11: icmp_seq=1 ttl=127 time=1.50 ms
64 bytes from 172.16.3.11: icmp_seq=2 ttl=127 time=1.39 ms

--- 172.16.3.11 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.392/1.446/1.501/0.066 ms
PING 172.16.3.41 (172.16.3.41) 56(84) bytes of data.
64 bytes from 172.16.3.41: icmp_seq=1 ttl=127 time=1.06 ms
64 bytes from 172.16.3.41: icmp_seq=2 ttl=127 time=1.23 ms


LSOF commands

lsof
====
lsof – list open files

guru@home:~$ sudo lsof -h
lsof 4.89
 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
 latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
 latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Defaults in parentheses; comma-separated set (s) items; dash-separated ranges.
  -?|-h list help          -a AND selections (OR)     -b avoid kernel blocks
  -c c  cmd c ^c /c/[bix]  +c w  COMMAND width (9)    +d s  dir s files
  -d s  select by FD set   +D D  dir D tree *SLOW?*   +|-e s  exempt s *RISKY*
  -i select IPv[46] files  -K list tasKs (threads)    -l list UID numbers
  -n no host names         -N select NFS files        -o list file offset
  -O no overhead *RISKY*   -P no port names           -R list paRent PID
  -s list file size        -t terse listing           -T disable TCP/TPI info
  -U select Unix socket    -v list version info       -V verbose search
  +|-w  Warnings (+)       -X skip TCP&UDP* files     -Z Z  context [Z]
  -- end option scan     
  -E display endpoint info              +E display endpoint info and files
  +f|-f  +filesystem or -file names     +|-f[gG] flaGs 
  -F [f] select fields; -F? for help  
  +|-L [l] list (+) suppress (-) link counts < l (0 = all; default = 0)
                                        +m [m] use|create mount supplement
  +|-M   portMap registration (-)       -o o   o 0t offset digits (8)
  -p s   exclude(^)|select PIDs         -S [t] t second stat timeout (15)
  -T qs TCP/TPI Q,St (s) info
  -g [s] exclude(^)|select and print process group IDs
  -i i   select by IPv[46] address: [46][proto][@host|addr][:svc_list|port_list]
  +|-r [t[m<fmt>]] repeat every t seconds (15);  + until no files, - forever.
       An optional suffix to t is m<fmt>; m must separate t from <fmt> and
      <fmt> is an strftime(3) format for the marker line.
  -s p:s  exclude(^)|select protocol (p = TCP|UDP) states by name(s).
  -u s   exclude(^)|select login|UID set s
  -x [fl] cross over +d|+D File systems or symbolic Links
  names  select named files or files on named file systems
Anyone can list all files; /dev warnings disabled; kernel ID check disabled.

all files you have opened as logged on user

guru@home:~$ lsof -u `whoami` | wc -l
3316

files opened in a directory
—————————

guru@home:~$ sudo lsof +D /etc/
COMMAND     PID  USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
avahi-dae   531 avahi  cwd    DIR    8,1     4096 46138635 /etc/avahi
avahi-dae   531 avahi  rtd    DIR    8,1     4096 46138635 /etc/avahi
sh        10201  guru   10r   REG    8,1     5873 46138915 /etc/xdg/xfce4/xinitrc

files opened by bash
——————–

guru@home:~$ sudo lsof -c bash
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
bash     5750 guru  cwd    DIR    8,1     4096  3670018 /home/guru
bash     5750 guru  rtd    DIR    8,1     4096        2 /
bash     5750 guru  txt    REG    8,1  1099016 34340977 /bin/bash
bash     5750 guru  mem    REG    8,1    47632 49286244 /lib/x86_64-linux-gnu/libnss_files-2.24.so
bash     5750 guru  mem    REG    8,1    47688 49286246 /lib/x86_64-linux-gnu/libnss_nis-2.24.so
.
.
bash    16945 guru  mem    REG    8,1   170776 49283165 /lib/x86_64-linux-gnu/libtinfo.so.5.9
bash    16945 guru  mem    REG    8,1   153288 49286230 /lib/x86_64-linux-gnu/ld-2.24.so
bash    16945 guru  mem    REG    8,1  1683008 11797031 /usr/lib/locale/locale-archive
bash    16945 guru  mem    REG    8,1    26258 11802677 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
bash    16945 guru  255u   CHR  136,1      0t0        4 /dev/pts/1
guru@home:~$ sudo lsof -c dhcli
COMMAND    PID USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
dhclient 13920 root  cwd    DIR                8,1     4096        2 /
dhclient 13920 root  rtd    DIR                8,1     4096        2 /
dhclient 13920 root  txt    REG                8,1   487728 39059510 /sbin/dhclient
dhclient 13920 root  mem    REG                8,1    47632 49286244 /lib/x86_64-linux-gnu/libnss_files-2.24.so
dhclient 13920 root  mem    REG                8,1  2492192 11801803 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
.
.
dhclient 15121 root    2w   CHR                1,3      0t0     1028 /dev/null
dhclient 15121 root    3u  unix 0xffff95d879fcc800      0t0   186960 type=DGRAM
dhclient 15121 root    4w   REG                8,1     7696 53477431 /var/lib/NetworkManager/dhclient-365be78a-08f5-4443-b128-be2e48fb8b36-enp0s25.lease
dhclient 15121 root    5u  pack             194950      0t0      ALL type=SOCK_RAW
dhclient 15121 root    6u  IPv4             194952      0t0      UDP *:bootpc 
guru@home:~$ sudo lsof -c net
COMMAND PID USER   FD      TYPE DEVICE SIZE/OFF NODE NAME
netns    56 root  cwd       DIR    8,1     4096    2 /
netns    56 root  rtd       DIR    8,1     4096    2 /
netns    56 root  txt   unknown                      /proc/56/exe
guru@home:~$ sudo lsof -c ssh
COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
ssh-agent 10238 guru  cwd    DIR                8,1     4096        2 /
ssh-agent 10238 guru  rtd    DIR                8,1     4096        2 /
ssh-agent 10238 guru  txt    REG                8,1   358624 11807359 /usr/bin/ssh-agent
ssh-agent 10238 guru  mem    REG                8,1    14640 49286237 /lib/x86_64-linux-gnu/libdl-2.24.so
ssh-agent 10238 guru  mem    REG                8,1  1685264 49286234 /lib/x86_64-linux-gnu/libc-2.24.so
ssh-agent 10238 guru  mem    REG                8,1  2492192 11801803 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
ssh-agent 10238 guru  mem    REG                8,1   153288 49286230 /lib/x86_64-linux-gnu/ld-2.24.so
ssh-agent 10238 guru    0u   CHR                1,3      0t0     1028 /dev/null
ssh-agent 10238 guru    1u   CHR                1,3      0t0     1028 /dev/null
ssh-agent 10238 guru    2u   CHR                1,3      0t0     1028 /dev/null
ssh-agent 10238 guru    3u  unix 0xffff95d851968c00      0t0   126742 /tmp/ssh-Ar27ChhjIh2b/agent.10201 type=STREAM

files opened by a process
eg the pid of firefox

guru@home:~$ sudo lsof -p 16116
COMMAND     PID USER   FD      TYPE             DEVICE SIZE/OFF     NODE NAME
plugin-co 16116 guru  cwd       DIR                8,1     4096  3670018 /home/guru
plugin-co 16116 guru  rtd       DIR                8,1     4096        2 /
plugin-co 16116 guru  txt       REG                8,1   261944 12846344 /usr/lib/firefox-esr/plugin-container
plugin-co 16116 guru  DEL       REG                0,5          43974662 /SYSV00000000
plugin-co 16116 guru  mem       REG                8,1    14232 11806677 /usr/lib/x86_64-linux-gnu/libvdpau.so.1.0.0
.
.
plugin-co 16116 guru   14w     FIFO               0,10      0t0   210188 pipe
plugin-co 16116 guru   15u     unix 0xffff95d874c26800      0t0   204431 type=STREAM
plugin-co 16116 guru   16r      REG                8,1   327680  3670105 /home/guru/.mozilla/firefox/xjyhxitc.default/cert8.db
plugin-co 16116 guru   17r      REG                8,1    16384  3670106 /home/guru/.mozilla/firefox/xjyhxitc.default/key3.db
plugin-co 16116 guru   18u  a_inode               0,11        0     9538 [eventfd]
plugin-co 16116 guru   19u  a_inode               0,11        0     9538 [eventfd]

lsof for networking
——————-
-i select IPv[46] files

guru@home:~$ sudo lsof -i
COMMAND     PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
avahi-dae   531 avahi   12u  IPv4    680      0t0  UDP *:mdns 
avahi-dae   531 avahi   13u  IPv6    681      0t0  UDP *:mdns 
avahi-dae   531 avahi   14u  IPv4    682      0t0  UDP *:47279 
avahi-dae   531 avahi   15u  IPv6    683      0t0  UDP *:57118 
firefox-e 10356  guru   81u  IPv4 268390      0t0  TCP 172.16.4.91:40490->ams15s22-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356  guru   83u  IPv4 267435      0t0  TCP 172.16.4.91:33536->ams16s29-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356  guru   98u  IPv4 264911      0t0  TCP 172.16.4.91:58772->ec2-54-225-163-44.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356  guru  129u  IPv4 230447      0t0  TCP 172.16.4.91:55832->ec2-54-224-188-111.compute-1.amazonaws.com:https (ESTABLISHED)
dhclient  13920  root    6u  IPv4 182622      0t0  UDP *:bootpc 
dhclient  14233  root    6u  IPv4 178049      0t0  UDP *:bootpc 
dhclient  14318  root    6u  IPv4 176042      0t0  UDP *:bootpc 
dhclient  14596  root    6u  IPv4 191123      0t0  UDP *:bootpc 
dhclient  15121  root    6u  IPv4 194952      0t0  UDP *:bootpc 
cupsd     15538  root    9u  IPv6 199931      0t0  TCP localhost:ipp (LISTEN)
cupsd     15538  root   10u  IPv4 199932      0t0  TCP localhost:ipp (LISTEN)
cups-brow 15539  root    7u  IPv4 198756      0t0  UDP *:ipp

-s p:s exclude(^)|select protocol (p = TCP|UDP) states by name(s).

guru@home:~$ sudo lsof -i -s tcp:listen
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
cupsd   15538 root    9u  IPv6 199931      0t0  TCP localhost:ipp (LISTEN)
cupsd   15538 root   10u  IPv4 199932      0t0  TCP localhost:ipp (LISTEN)
guru@home:~$ sudo lsof -i -s tcp:established
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   81u  IPv4 270686      0t0  TCP 172.16.4.91:47818->ec2-54-175-254-119.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 264911      0t0  TCP 172.16.4.91:58772->ec2-54-225-163-44.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru  129u  IPv4 230447      0t0  TCP 172.16.4.91:55832->ec2-54-224-188-111.compute-1.amazonaws.com:https (ESTABLISHED)
guru@home:~$ sudo lsof -i 6 -s tcp:listen
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
cupsd   15538 root    9u  IPv6 199931      0t0  TCP localhost:ipp (LISTEN)
guru@home:~$ sudo lsof -i 4 -s tcp:established
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   81u  IPv4 270710      0t0  TCP 172.16.4.91:56422->ec2-34-206-132-93.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 267622      0t0  TCP 172.16.4.91:39070->ams16s22-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 264911      0t0  TCP 172.16.4.91:58772->ec2-54-225-163-44.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru  129u  IPv4 230447      0t0  TCP 172.16.4.91:55832->ec2-54-224-188-111.compute-1.amazonaws.com:https (ESTABLISHED)

source ip
———-

guru@home:~$ sudo lsof -i@172.16.4.91
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   85u  IPv4 267622      0t0  TCP 172.16.4.91:39070->ams16s22-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 264911      0t0  TCP 172.16.4.91:58772->ec2-54-225-163-44.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru  129u  IPv4 230447      0t0  TCP 172.16.4.91:55832->ec2-54-224-188-111.compute-1.amazonaws.com:https (ESTABLISHED)

exclude user
————

guru@home:~$ lsof -u ^guru

By default when you use more than one list option in lsof, they will be ORed.
——————————————————————————
-a AND selections

guru@home:~$ sudo lsof -i@172.16.4.91 -u guru -a
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   81u  IPv4 274022      0t0  TCP 172.16.4.91:41908->ec2-23-21-83-14.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 279138      0t0  TCP 172.16.4.91:52108->ec2-52-55-162-68.compute-1.amazonaws.com:http (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 267993      0t0  TCP 172.16.4.91:45896->ams16s31-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 279037      0t0  TCP 172.16.4.91:49284->ams15s29-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 279112      0t0  TCP 172.16.4.91:33448->ams16s30-in-f66.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru   99u  IPv4 279110      0t0  TCP 172.16.4.91:41516->ams16s31-in-f2.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  106u  IPv4 273999      0t0  TCP 172.16.4.91:38956->edge-star-mini-shv-01-iad3.facebook.com:https (ESTABLISHED)
firefox-e 10356 guru  108u  IPv4 274000      0t0  TCP 172.16.4.91:45926->ams16s31-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  111u  IPv4 279018      0t0  TCP 172.16.4.91:53064->ams15s30-in-f142.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  113u  IPv4 279009      0t0  TCP 172.16.4.91:51764->ams15s30-in-f132.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 279034      0t0  TCP 172.16.4.91:39706->ams15s30-in-f134.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  115u  IPv4 274911      0t0  TCP 172.16.4.91:45932->ams16s31-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  116u  IPv4 268115      0t0  TCP 172.16.4.91:45928->ams16s31-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  118u  IPv4 279061      0t0  TCP 172.16.4.91:43220->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  119u  IPv4 274003      0t0  TCP 172.16.4.91:48542->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  120u  IPv4 279047      0t0  TCP 172.16.4.91:34208->xx-fbcdn-shv-01-bru2.fbcdn.net:https (ESTABLISHED)
firefox-e 10356 guru  122u  IPv4 274914      0t0  TCP 172.16.4.91:43932->ams15s30-in-f13.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  125u  IPv4 274924      0t0  TCP 172.16.4.91:42470->199.16.156.52:https (ESTABLISHED)
firefox-e 10356 guru  127u  IPv4 279048      0t0  TCP 172.16.4.91:43174->104.19.194.102:https (ESTABLISHED)
firefox-e 10356 guru  133u  IPv4 274006      0t0  TCP 172.16.4.91:44406->ams15s30-in-f138.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  140u  IPv4 271141      0t0  TCP 172.16.4.91:39644->ams15s30-in-f134.1e100.net:https (ESTABLISHED)
guru@home:~$ sudo lsof -i -a -c firefox-e
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 276074      0t0  TCP 172.16.4.91:53602->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 281738      0t0  TCP 172.16.4.91:34222->ams16s29-in-f46.1e100.net:https (ESTABLISHED)

List process IDs for processes being run by a particular user.
————————————————————–

guru@home:~$ sudo lsof -t -u guru
769
770
786
827
832
840
844
856
864
888
917
919
946
960
5750
10201
10238
10248
10250
10259
10260
10262
10263
10265
10273
10274
10277
10296
10299
10301
10307
10356
11227
11232
11437
11444
13128
13129
13310
14722
16116
16945

kill all files opened by a user
——————————-

-t terse listing

kill -9 `lsof -t -u guru`

Execute lsof in repeat mode
—————————-

It will first list files based on the given parameters and delay for specified seconds and again list files based on the given parameters
It can be interrupted by a signal.

Repeat mode can be enabled by using ‘-r’ or ‘+r’. If ‘+r’ is used then, the repeat mode will end when no open files are found.
‘-r’ will continue to list,delay,list until a interrupt is given irrespective of files are opened or not.

Each cycle output will be separated by using ‘=======’. You also also specify the time delay as ‘-r’ | ‘+r’.

guru@home:~$ lsof -i -a -s tcp:established -r 5
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   81u  IPv4 282458      0t0  TCP 172.16.4.91:40788->mail.unipartners.org:http (ESTABLISHED)
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   99u  IPv4 284836      0t0  TCP 172.16.4.91:58028->wilder.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   99u  IPv4 282464      0t0  TCP 172.16.4.91:58030->wilder.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 284729      0t0  TCP 172.16.4.91:49134->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-e 10356 guru   81u  IPv4 284099      0t0  TCP 172.16.4.91:36412->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru   83u  IPv4 283891      0t0  TCP 172.16.4.91:56136->ams15s30-in-f133.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   84u  IPv4 284081      0t0  TCP 172.16.4.91:53672->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   85u  IPv4 282469      0t0  TCP 172.16.4.91:36414->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru   88u  IPv4 283892      0t0  TCP 172.16.4.91:43736->ams15s30-in-f3.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   98u  IPv4 284730      0t0  TCP 172.16.4.91:49136->ams15s30-in-f1.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru   99u  IPv4 282470      0t0  TCP 172.16.4.91:36416->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  101u  IPv4 284083      0t0  TCP 172.16.4.91:38886->104.28.18.50:https (ESTABLISHED)
firefox-e 10356 guru  103u  IPv4 284756      0t0  TCP 172.16.4.91:40598->ams15s30-in-f2.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  105u  IPv4 287824      0t0  TCP 172.16.4.91:37206->ams15s30-in-f10.1e100.net:http (ESTABLISHED)
firefox-e 10356 guru  106u  IPv4 282471      0t0  TCP 172.16.4.91:36418->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  108u  IPv4 282472      0t0  TCP 172.16.4.91:36420->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  110u  IPv4 282473      0t0  TCP 172.16.4.91:36422->senfter.debian.org:https (ESTABLISHED)
firefox-e 10356 guru  114u  IPv4 283915      0t0  TCP 172.16.4.91:53634->ams15s30-in-f14.1e100.net:https (ESTABLISHED)
firefox-e 10356 guru  139u  IPv4 285809      0t0  TCP 172.16.4.91:47490->ef-in-f189.1e100.net:https (ESTABLISHED)
=======
^C

cli tools to assist you in subnetting a network

If your into networking you should be able to do all subnetting without any tools but sometimes human error can creep up or you just want things done quickly

These are the command line interface tools I found helpful for subnetting:

  1. sipcalc
    
    guru@home:~$ sipcalc --help
    sipcalc 1.1.5
    
    Usage: sipcalc [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>
    
    Global options:
     -a, --all All possible information.
     -d, --resolve Enable name resolution.
     -h, --help Display this help.
     -I, --addr-int=INT Added an interface.
     -n, --subnets=NUM Display NUM extra subnets (starting from
     the current subnet). Will display all subnets
     in the current /24 if NUM is 0.
     -u, --split-verbose Verbose split.
     -v, --version Version information.
     -4, --addr-ipv4=ADDR Add an ipv4 address.
     -6, --addr-ipv6=ADDR Add an ipv6 address.
    
    IPv4 options:
     -b, --cidr-bitmap CIDR bitmap.
     -c, --classfull-addr Classfull address information.
     -i, --cidr-addr CIDR address information. (default)
     -s, --v4split=MASK Split the current network into subnets
     of MASK size.
     -w, --wildcard Display information for a wildcard
     (inverse mask).
     -x, --classfull-bitmap Classfull bitmap.
    
    IPv6 options:
     -e, --v4inv6 IPv4 compatible IPv6 information.
     -r, --v6rev IPv6 reverse DNS output.
     -S, --v6split=MASK Split the current network into subnets
     of MASK size.
     -t, --v6-standard Standard IPv6. (default)
    
    Address must be in the "standard" dotted quad format.
    Netmask can be given in three different ways:
     - Number of bits [/nn]
     - Dotted quad [nnn.nnn.nnn.nnn]
     - Hex [0xnnnnnnnn | nnnnnnnn]
    
    Interface must be a valid network interface on the system.
    If this options is used an attempt will be made to gain the address
    and netmask from the specified interface.
    
    Replacing address/interface with '-' will use stdin for reading further
    arguments.
    
    Report bugs to <simon@routemeister.net>.
    

    so for example you want to understand the Global Unicast Address range

    guru@home:~$ sipcalc -a -6 2000::/3
    -[ipv6 : 2000::/3] - 0
    
    [IPV6 INFO]
    Expanded Address	- 2000:0000:0000:0000:0000:0000:0000:0000
    Compressed address	- 2000::
    Subnet prefix (masked)	- 2000:0:0:0:0:0:0:0/3
    Address ID (masked)	- 0:0:0:0:0:0:0:0/3
    Prefix address		- e000:0:0:0:0:0:0:0
    Prefix length		- 3
    Address type		- Aggregatable Global Unicast Addresses
    Network range		- 2000:0000:0000:0000:0000:0000:0000:0000 -
    			  3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    
    [V4INV6]
    Expanded v4inv6 address	- 2000:0000:0000:0000:0000:0000:0.0.0.0
    Compr. v4inv6 address	- 2000::0.0.0.0
    
    [IPV6 DNS]
    Reverse DNS (ip6.arpa)	-
    0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.ip6.arpa.
    
    -
    
    

    Or say you want to know the range of the subnets for a given IP address and you want 4 including the one for which you provide the IP (you can leave the -a option)

    e.g. 10.6.14.4/20

    guru@home:~$ sipcalc -a -n4 10.5.14.4/20
    -[ipv4 : 10.5.14.4/20] - 0
    
    [Classfull]
    Host address		- 10.5.14.4
    Host address (decimal)	- 168103428
    Host address (hex)	- A050E04
    Network address		- 10.0.0.0
    Network class		- A
    Network mask		- 255.0.0.0
    Network mask (hex)	- FF000000
    Broadcast address	- 10.255.255.255
    
    [CIDR]
    Host address		- 10.5.14.4
    Host address (decimal)	- 168103428
    Host address (hex)	- A050E04
    Network address		- 10.5.0.0
    Network mask		- 255.255.240.0
    Network mask (bits)	- 20
    Network mask (hex)	- FFFFF000
    Broadcast address	- 10.5.15.255
    Cisco wildcard		- 0.0.15.255
    Addresses in network	- 4096
    Network range		- 10.5.0.0 - 10.5.15.255
    Usable range		- 10.5.0.1 - 10.5.15.254
    
    [Classfull bitmaps]
    Network address		- 00001010.00000000.00000000.00000000
    Network mask		- 11111111.00000000.00000000.00000000
    
    [CIDR bitmaps]
    Host address		- 00001010.00000101.00001110.00000100
    Network address		- 00001010.00000101.00000000.00000000
    Network mask		- 11111111.11111111.11110000.00000000
    Broadcast address	- 00001010.00000101.00001111.11111111
    Cisco wildcard		- 00000000.00000000.00001111.11111111
    Network range		- 00001010.00000101.00000000.00000000 -
    			  00001010.00000101.00001111.11111111
    Usable range		- 00001010.00000101.00000000.00000001 -
    			  00001010.00000101.00001111.11111110
    
    [Networks]
    Network			- 10.5.0.0        - 10.5.15.255 (current)
    Network			- 10.5.16.0       - 10.5.31.255
    Network			- 10.5.32.0       - 10.5.47.255
    Network			- 10.5.48.0       - 10.5.63.255
    
    
    
  2. bindechexascii
    (handy for teachers)

    guru@home:~$ bindechexascii --help
    
    Usage: bindechexascii [mode] arg1 arg2 arg3 ...
    
    Convert:
     --b2d     Binary to decimal
     --b2h     Binary to hexadecimal
     --b2a     Binary to ASCII
    
     --d2b     Decimal to binary
     --d2h     Decimal to hexadecimal
     --d2a     Decimal to ASCII
    
     --h2b     Hexadecimal to binary
     --h2d     Hexadecimal to decimal
     --h2a     Hexadecimal to ASCII
    
     --a2b     ASCII to binary
     --a2d     ASCII to decimal
     --a2h     ASCII to hexadecimal
    
     -h --help    Print this help
     -i --info    Print information about program
    
    guru@home:~$ bindechexascii --h2b 2001 FE80
    Hexadecimal to Binary: 0010000000000001 1111111010000000
    
    guru@home:~$ bindechexascii --d2h 192 168 4 66
    Decimal to Hexadecimal: C0 A8 4 42 
    
  3. subnetcalc

    Usage:
    subnetcalc [Address{/{Netmask|Prefix}}] {Netmask|Prefix} {-n} {-uniquelocal|-uniquelocalhq}

    guru@home:~$ subnetcalc 2001:fe80:ABCD:EF::/64
    Address       = 2001:fe80:abcd:ef::
                       2001 = 00100000 00000001
                       fe80 = 11111110 10000000
                       abcd = 10101011 11001101
                       00ef = 00000000 11101111
                       0000 = 00000000 00000000
                       0000 = 00000000 00000000
                       0000 = 00000000 00000000
                       0000 = 00000000 00000000
    Network       = 2001:fe80:abcd:ef:: / 64
    Netmask       = ffff:ffff:ffff:ffff::
    Wildcard Mask = ::ffff:ffff:ffff:ffff
    Hosts Bits    = 64
    Max. Hosts    = 18446744073709551616   (2^64 - 1)
    Host Range    = { 2001:fe80:abcd:ef::1 - 2001:fe80:abcd:ef:ffff:ffff:ffff:ffff }
    Properties    =
       - 2001:fe80:abcd:ef:: is a NETWORK address
       - Global Unicast Properties:
          + Interface ID = 0000:0000:0000:0000
          + Sol. Node MC = ff02::1:ff00:0000
    GeoIP Country = Unknown (??)
    DNS Hostname  = (Name or service not known)
    
    

 

Record your bash shell and upload as a gif file

Recording a video when you are typing is all but a waste of resources so I set out on a quest to find the easiest way to record my bash and convert that recording to a gif file that can be posted on wordpress without having to ‘upgrade’ to upload your ‘video’

I came across several solutions
ttystudio
ttygif
seq2gif

but only one offered me a hassle-free experience was asciinema.
The recordings can be made locally or put online instantly. To convert to a gif file you can use asciinema2gif to generate one and you are done with it.
Now you have your recording as a gif.

the asciinema project
the assciinema2gif project

to record a file you type
asciinema rec [filename]
The recording finishes whet typing exit or pressing ctrl+d.
Use a filename if you want to store it locally

Available options:

  • -c, --command= – Specify command to record, defaults to $SHELL
  • -t, --title= – Specify the title of the asciicast
  • -w, --max-wait= – Reduce recorded terminal inactivity to max seconds
  • -y, --yes – Answer “yes” to all prompts (e.g. upload confirmation)
  • -q, --quiet – Be quiet, suppress all notices/warnings (implies -y)
patrick@debian:~/utils$ mkdir ~/utils;cd ~/utils
patrick@debian:~/utils$ git clone --recursive https://github.com/asciinema/asciicast2gif.git
Cloning into 'asciicast2gif'...
remote: Counting objects: 296, done.
remote: Compressing objects: 100% (153/153), done.
remote: Total 296 (delta 145), reused 269 (delta 118), pack-reused 0
Receiving objects: 100% (296/296), 65.03 KiB | 0 bytes/s, done.
Resolving deltas: 100% (145/145), done.
Submodule 'asciinema-player' (https://github.com/asciinema/asciinema-player.git) registered for path 'asciinema-player'
Cloning into '/home/patrick/utils/asciicast2gif/asciinema-player'...
remote: Counting objects: 4425, done.
remote: Total 4425 (delta 0), reused 0 (delta 0), pack-reused 4425
Receiving objects: 100% (4425/4425), 1.56 MiB | 1016.00 KiB/s, done.
Resolving deltas: 100% (2144/2144), done.
Submodule path 'asciinema-player': checked out 'f487580ca161a52bb34613d39e1b27df4ae1642a'
patrick@debian:~/utils$ ls
asciicast2gif

patrick@debian:~/utils$ git clone https://github.com/asciinema/asciinema.git
Cloning into 'asciinema'...
remote: Counting objects: 2682, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2682 (delta 0), reused 0 (delta 0), pack-reused 2679
Receiving objects: 100% (2682/2682), 1.57 MiB | 936.00 KiB/s, done.
Resolving deltas: 100% (1341/1341), done.
patrick@debian:~/utils$ cd asciinema/
patrick@debian:~/utils/asciinema$ ls
asciinema CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md doc Dockerfile LICENSE Makefile man README.md setup.cfg setup.py tests Vagrantfile
patrick@debian:~/utils/asciinema$ python3 -m asciinema --version
asciinema 1.4.0
patrick@debian:~/utils/asciinema$ git pull
Already up-to-date.
patrick@debian:~/utils/asciinema$ cd ../asciicast2gif/;git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
patrick@debian:~/utils/asciicast2gif$

To be sure you have the latest version don’t forget to git pull in the asciinema directory.

To launch asciinema with python 3 you need to have the path in your pythonpath environment variable at startup so edit your bashrc script and put in the export bit

patrick@debian:~/casts$ echo $PYTHONPATH
patrick@debian:~/casts$ export PYTHONPATH=$PYTHONPATH:~/utils/:~/utils/asciinema/
patrick@debian:~/casts$ echo $PYTHONPATH
:/home/patrick/utils/:/home/patrick/utils/asciinema/

For fun I recorded this with asciinema here asciinema recording

And for more fun I converted it to a gif file for yours truly with asciicast2gif

click on it to view properly

asciinema_create

I also recorded how to install docker and run asciicast2gif. Enjoy my tinkering
Creating a Gif file from you asciinema recording

patrick@debian:~/utils/asciicast2gif$ cd ../../casts/;wget https://asciinema.org/a/e46k1qs5dqgru7mwfygvj969c.json
--2017-05-16 19:46:35-- https://asciinema.org/a/e46k1qs5dqgru7mwfygvj969c.json
Resolving asciinema.org (asciinema.org)... 109.107.38.78
Connecting to asciinema.org (asciinema.org)|109.107.38.78|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://s3-eu-west-1.amazonaws.com/asciinema-bb-eu/uploads/asciicast/file/120837/asciicast.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI2DOCAQ34YNJM3GA%2F20170516%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170516T174635Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=89ffdb5c583822b47c500336077a1897baf63263819cb1790b4cbb7ed1396248 [following]
--2017-05-16 19:46:35-- https://s3-eu-west-1.amazonaws.com/asciinema-bb-eu/uploads/asciicast/file/120837/asciicast.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI2DOCAQ34YNJM3GA%2F20170516%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170516T174635Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=89ffdb5c583822b47c500336077a1897baf63263819cb1790b4cbb7ed1396248
Resolving s3-eu-west-1.amazonaws.com (s3-eu-west-1.amazonaws.com)... 54.231.130.20
Connecting to s3-eu-west-1.amazonaws.com (s3-eu-west-1.amazonaws.com)|54.231.130.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 323617 (316K) [application/json]
Saving to: ‘e46k1qs5dqgru7mwfygvj969c.json’
e46k1qs5dqgru7mwfygvj969c.json 100%[==========================================================================================================================================>] 316.03K 1.20MB/s in 0.3s
2017-05-16 19:46:36 (1.20 MB/s) - ‘e46k1qs5dqgru7mwfygvj969c.json’ saved [323617/323617]
FINISHED --2017-05-16 19:46:36--
Total wall clock time: 0.8s
Downloaded: 1 files, 316K in 0.3s (1.20 MB/s)

patrick@debian:~/casts$ mv e46k1qs5dqgru7mwfygvj969c.json installing_using_asciicast2gif.json
patrick@debian:~/casts$ sudo docker run --rm -v $PWD:/data asciinema/asciicast2gif -s 2 -t solarized-dark installing_using_asciicast2gif.json installing_using_asciicast2gif.gif
[sudo] password for patrick:
==> Loading installing_using_asciicast2gif.json...
==> Spawning PhantomJS renderer...
==> Generating frame screenshots...

You can see some more info on your docker image use the following command

patrick@debian:~$ sudo docker images
[sudo] password for patrick:
Sorry, try again.
[sudo] password for patrick:
REPOSITORY TAG IMAGE ID CREATED SIZE
asciinema/asciicast2gif latest 7589ae2fca68 9 days ago 832 MB

Docker stores these images in layers in /var/lib/docker/overlay2#

root@debian:/var/lib/docker# du -sh overlay2/
845M overlay2/

but that is something for another article on docker
more on Docker on Debian.org

switching keyboard layouts on debian

As are perhaps many people I sometimes use a qwerty keyboard and sometimes I’m using an azerty keyboard and/or maybe you want qwerty on an azerty due to typing habits etc.
So yes you want to change the layout asap

patrick@debian:~$ cat /etc/default/locale 
#  File generated by update-locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"

so that is what you are using on your system right now. I want to switch to a belgian azerty so I make sure I have the goods

patrick@debian:~$ sudo apt-get install console-data unicode-data

Now reconfigure your locales and you will be presented with a prompt where you can check the layouts you need.

patrick@debian:~$ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_US.UTF-8... done
  nl_BE.ISO-8859-1... done
  nl_BE.UTF-8... done
  nl_BE.ISO-8859-15@euro... done
Generation complete.

Now just set it in bash..

patrick@debian:~$ setxkbmap be

System wide I still have en_US set

patrick@debian:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

You can see this here as well

patrick@debian:~$ cat /etc/default/keyboard 
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

So you could now set this command in a startup bash script. Systemwide you can do this in /etc/profile
or you can execute the command below, it will also give you the opportunity to set some other options like what your alt key does and the symbol key (commonly known as a winkey or superkey)

patrick@debian:~$ cat /etc/default/keyboard 
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="be"
XKBVARIANT=""
XKBOPTIONS="lv3:ralt_switch,compose:lwin,terminate:ctrl_alt_bksp"

BACKSPACE="guess"

Allright have fun 🙂

additional information: https://wiki.debian.org/Keyboard

Generate a sources.list file online

A neat site where you can just go and generate some sources.list entries to your liking. For example I generated this by selecting Belgium, the testing distribution and a couple of software projects I like:

#——————————————————————————#
# OFFICIAL DEBIAN REPOS
#——————————————————————————#

###### Debian Main Repos
deb http://ftp.be.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.be.debian.org/debian/ testing main contrib non-free

deb http://ftp.be.debian.org/debian/ testing-updates main contrib non-free
deb-src http://ftp.be.debian.org/debian/ testing-updates main contrib non-free

deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main

#——————————————————————————#
# UNOFFICIAL REPOS
#——————————————————————————#

###### 3rd Party Binary Repos
###Debian Multimedia
deb http://www.deb-multimedia.org testing main non-free

###DotDeb
deb http://packages.dotdeb.org stable all

deb-src http://packages.dotdeb.org stable all

###Google Chrome Browser
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

###Mozilla Firefox Aurora
deb http://mozilla.debian.net/ experimental firefox-aurora

###Steam
deb [arch=i386,amd64] http://repo.steampowered.com/steam/ precise steam

###TOR
deb [arch=i386,amd64,armel,armhf] http://deb.torproject.org/torproject.org stretch main
deb-src [arch=i386,amd64,armel,armhf] http://deb.torproject.org/torproject.org wheezy main

You can try it out on Debian Sources List Generator
This site is gradually moving to the domain http://www.debgen.org/



Others are
Debgen.xyz

Note use it as an inspiration for adding something, never copy paste from a web page to your terminal 🙂

To understand the format better visit this site: Debian Repository Format