Code Monkey home page Code Monkey logo

elfread's Introduction

7etsuo

Excessively driven developer, constantly labouring on self-improvement and supporting others.

snowcrash_banner_good

๐Ÿงฎ Statistics


GitHub stats

๐ŸŒŸ Small Contributions

Contribution Details
Icon Microsoft Fixed misplaced closing brace in WndProc.
Icon Rust Updated an unnecessary newline following the println examples.
Icon Kali Fixed a broken historical link in the 'Kali Linux History' topic.
Icon Kali Got a shoutout for contributing to the community by sharing my notes, and resources with users.
Icon Ronin Updated broken link for Pragmatic Programmers Guide to Ruby

๐Ÿ› CVE-2003-0358

Buffer overflow in (1) nethack 3.4.0 and earlier, and (2) falconseye 1.9.3 and earlier, which is based on nethack, allows local users to gain privileges via a long -s command line option.

https://github.com/7etsuo/CVE-2003-0358
https://www.exploit-db.com/?author=4939

๐Ÿ CTF Writeups

https://github.com/7etsuo/zh3r0-CTF-binaryexploit
https://ctftime.org/writeup/21710
https://ctftime.org/writeup/21729
https://ctftime.org/writeup/21728

elfread's People

Contributors

7etsuo avatar

Stargazers

 avatar  avatar

elfread's Issues

Feature implement option [-S|--section-headers|--sections]

According to man readelf this feature should be as follows

  -S
  --sections
  --section-headers
      Displays the information contained in the file's section headers, if it has any.

from man 5 elf we have

      typedef struct {
          uint32_t   sh_name;
          uint32_t   sh_type;
          uint64_t   sh_flags;
          Elf64_Addr sh_addr;
          Elf64_Off  sh_offset;
          uint64_t   sh_size;
          uint32_t   sh_link;
          uint32_t   sh_info;
          uint64_t   sh_addralign;
          uint64_t   sh_entsize;
      } Elf64_Shdr;
   sh_name
          This member specifies the name of the section.  Its value is an index into the section header string table section, giving
          the location of a null-terminated string.

   sh_type
          This member categorizes the section's contents and semantics.

  sh_flags
          Sections support one-bit flags that describe miscellaneous attributes.  If a flag bit is set in sh_flags, the attribute is
          "on" for the section.  Otherwise, the attribute is "off" or does not apply.  Undefined attributes are set to zero.
   sh_addr
          If this section appears in the memory image of a process, this member holds the address at which the section's first  byte
          should reside.  Otherwise, the member contains zero.

   sh_offset
          This  member's  value  holds the byte offset from the beginning of the file to the first byte in the section.  One section
          type, SHT_NOBITS, occupies no space in the file, and its sh_offset member locates the conceptual placement in the file.

   sh_size
          This member holds the section's size in bytes.  Unless the section type is SHT_NOBITS, the section occupies sh_size  bytes
          in the file.  A section of type SHT_NOBITS may have a nonzero size, but it occupies no space in the file.

   sh_link
          This member holds a section header table index link, whose interpretation depends on the section type.

   sh_info
          This member holds extra information, whose interpretation depends on the section type.

   sh_addralign
          Some  sections  have  address  alignment  constraints.  If a section holds a doubleword, the system must ensure doubleword
          alignment for the entire section.  That is, the value of sh_addr must be congruent to zero, modulo  the  value  of  sh_adโ€
          dralign.   Only  zero  and  positive  integral  powers of two are allowed.  The value 0 or 1 means that the section has no
          alignment constraints.

   sh_entsize
          Some sections hold a table of fixed-sized entries, such as a symbol table.  For such a section, this member gives the size
          in bytes for each entry.  This member contains zero if the section does not hold a table of fixed-size entries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.