daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR
git clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
Log | Files | Refs | README | LICENSE

index.astro (2636B)


      1 ---
      2 import Base from '../../layouts/Base.astro';
      3 import SectionBanner from '../../components/SectionBanner.astro';
      4 import RecordRow from '../../components/RecordRow.astro';
      5 import Icon from '../../components/Icon.astro';
      6 import { hackTricksBySection } from '../../lib/hacktricks';
      7 import { url } from '../../lib/url';
      8 
      9 const sections = await hackTricksBySection();
     10 const totalPages = sections.reduce((total, section) => total + section.count, 0);
     11 const sha = sections[0]?.items[0]?.data.sha ?? '';
     12 const accents = ['gold', 'love', 'foam', 'pine', 'iris'];
     13 ---
     14 <Base
     15   title="HackTricks Library — DÆMON//SEC"
     16   description="A searchable, attributed selection of HackTricks covering network services, web, Windows, Linux, and mobile pentesting."
     17 >
     18   <SectionBanner
     19     n="04"
     20     label="Adapted mirror · CC BY-NC 4.0"
     21     title="HackTricks Library"
     22     blurb="A broad on-site selection of HackTricks field references, searchable alongside the rest of the vault and linked back to every upstream source page."
     23     accent="gold"
     24     stats={[
     25       { label: 'Sections', value: String(sections.length).padStart(2, '0'), accent: true },
     26       { label: 'Pages', value: totalPages },
     27       { label: 'License', value: 'BY-NC' },
     28     ]}
     29   />
     30 
     31   <div class="wrap">
     32     <nav class="breadcrumb" style="margin-top:1.6rem;">
     33       <a href={url('')}>~</a><span class="sep">/</span><span class="muted">hacktricks</span>
     34     </nav>
     35 
     36     <aside class="patt-credit corners" style="margin-top:1.4rem;--bracket:var(--gold);border-left-color:var(--gold);">
     37       <span class="patt-badge" style="color:var(--gold);">adapted mirror</span>
     38       <span class="patt-credit__text">
     39         Adapted from HackTricks by Carlos Polop and contributors. GitBook wrappers and training banners are removed; links are rewritten for this site.
     40         <span class="patt-lic">CC BY-NC 4.0 · non-commercial use only · <a href={url('credits')}>full attribution and license</a>{sha && <> · <code>{sha.slice(0, 7)}</code></>}</span>
     41       </span>
     42       <a class="patt-src" href="https://github.com/HackTricks-wiki/hacktricks" target="_blank" rel="noopener">
     43         <Icon name="github" /> upstream
     44       </a>
     45     </aside>
     46 
     47     <div class="index" style="margin-bottom:3rem;">
     48       {sections.map((section, index) => (
     49         <RecordRow
     50           href={url(`hacktricks/section/${section.slug}`)}
     51           n={String(index + 1).padStart(2, '0')}
     52           title={section.title}
     53           kind="HackTricks"
     54           kindIcon="layers"
     55           accent={accents[index % accents.length]}
     56           meta={`${section.count} pages`}
     57         />
     58       ))}
     59     </div>
     60   </div>
     61 </Base>