-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
195 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,144 @@ | ||
--- | ||
import type { Props } from '@astrojs/starlight/props'; | ||
import Default from '@astrojs/starlight/components/Hero.astro'; | ||
import demoImage from '../../src/assets/binsider-general-tab.png'; | ||
--- | ||
|
||
<div class="container"> | ||
<img | ||
src={demoImage.src} | ||
alt="demo" | ||
class="demo-image" | ||
/> | ||
<div class="main"> | ||
<div class="slider-container"> | ||
<button class="slider-button left"><</button> | ||
<div class="image-container"> | ||
<img class="demo-image"/> | ||
</div> | ||
<button class="slider-button right">></button> | ||
</div> | ||
|
||
<p class="main-text"> | ||
binsider gets inside of the ELF binaries. | ||
</p> | ||
<p class="description"> | ||
It provides powerful tools for both static and dynamic analysis, offering features similar to readelf and strace. | ||
It allows you to easily inspect strings, examine linked libraries, and perform a hexdump, all within a user-friendly terminal user interface. | ||
</p> | ||
</div> | ||
|
||
<p> | ||
<Default {...Astro.props}><slot /></Default> | ||
|
||
binsider gets inside of the ELF binaries. | ||
<script> | ||
import { index, images } from '../slider.js'; | ||
|
||
It provides powerful tools for both static and dynamic analysis, offering features similar to readelf and strace. | ||
const imageElement = document.querySelector('.demo-image'); | ||
const mainTextElement = document.querySelector('.main-text'); | ||
const descriptionElement = document.querySelector('.description'); | ||
|
||
It allows you to easily inspect strings, examine linked libraries, and perform a hexdump, all within a user-friendly terminal user interface. | ||
const updateImage = () => { | ||
|
||
</p> | ||
imageElement.classList.add('anim'); | ||
setTimeout(() => { | ||
imageElement.classList.remove('anim'); | ||
}, 300); | ||
|
||
<Default {...Astro.props}><slot /></Default> | ||
const image = images.get()[index.get()]; | ||
|
||
if (imageElement) { | ||
imageElement.src = image.src.src; | ||
imageElement.alt = image.alt; | ||
} | ||
|
||
if (mainTextElement) { | ||
mainTextElement.textContent = image.text; | ||
} | ||
|
||
if (descriptionElement) { | ||
descriptionElement.textContent = image.description; | ||
} | ||
}; | ||
|
||
const goLeft = () => { | ||
index.set(index.get() === 0 ? images.get().length - 1 : index.get() - 1); | ||
updateImage(); | ||
}; | ||
|
||
const goRight = () => { | ||
index.set(index.get() === images.get().length - 1 ? 0 : index.get() + 1); | ||
updateImage(); | ||
}; | ||
|
||
updateImage(); | ||
document.querySelector('.left').addEventListener('click', goLeft); | ||
document.querySelector('.right').addEventListener('click', goRight); | ||
document.querySelector('.demo-image').addEventListener('click', goRight); | ||
</script> | ||
|
||
<style> | ||
.container { | ||
@keyframes intro { | ||
0% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
div.main { | ||
animation: intro 2s both; | ||
animation-delay: 0.15s; | ||
} | ||
|
||
.main-text { | ||
color: var(--sl-color-accent); | ||
text-align: center; | ||
width: 75%; | ||
margin: 5px auto; | ||
font-style: italic; | ||
} | ||
|
||
.description { | ||
color: var(--sl-color-gray-2); | ||
line-height: 1.6; | ||
text-align: center; | ||
width: 70%; | ||
margin: 10px auto; | ||
} | ||
|
||
.demo-image { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
.image-container { | ||
text-align: center; | ||
} | ||
|
||
.image-container img { | ||
transition: box-shadow 0.3s ease, transform 0.3s ease; | ||
} | ||
|
||
.anim { | ||
transform: scale(1.01); | ||
} | ||
|
||
.slider-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.slider-button { | ||
color: var(--sl-color-accent); | ||
background-color: var(--sl-color-black); | ||
border: 2px solid var(--sl-color-gray-5); | ||
padding: 8px; | ||
cursor: pointer; | ||
font-size: 15px; | ||
border-radius: 4px; | ||
transition: background-color 0.2s ease; | ||
font-weight: bold; | ||
margin: 5px; | ||
} | ||
|
||
.slider-button:hover { | ||
color: var(--sl-color-black); | ||
background-color: var(--sl-color-white); | ||
} | ||
|
||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { atom } from "nanostores"; | ||
|
||
export const index = atom(0); | ||
|
||
import generalAnalysis from "./assets/demo/general-analysis.gif"; | ||
import staticAnalysis from "./assets/demo/static-analysis.gif"; | ||
import dynamicAnalysis from "./assets/demo/dynamic-analysis.gif"; | ||
import strings from "./assets/demo/strings.gif"; | ||
import hexdump from "./assets/demo/hexdump.gif"; | ||
|
||
export const images = atom([ | ||
{ | ||
src: generalAnalysis, | ||
alt: "General Analysis", | ||
text: '"Get inside of the ELF binaries."', | ||
description: | ||
"Binsider provides powerful tools for both static and dynamic analysis, offering features similar to readelf and strace. It allows you to easily inspect strings, examine linked libraries, and perform a hexdump, all within a user-friendly terminal user interface.", | ||
}, | ||
{ | ||
src: staticAnalysis, | ||
alt: "Static Analysis", | ||
text: '"Static analysis with a breeze."', | ||
description: | ||
"It helps you thoroughly examine the ELF file layout, including headers, sections, and symbols. It also supports precise searches across these components.", | ||
}, | ||
{ | ||
src: dynamicAnalysis, | ||
alt: "Dynamic Analysis", | ||
text: '"It is strace(1) but better."', | ||
description: | ||
"You can trace system calls and signals by running the executable. It also offers in-depth insights to further understand the program's behavior and interactions with the system.", | ||
}, | ||
{ | ||
src: strings, | ||
alt: "Strings", | ||
text: '"Strings are always interesting."', | ||
description: | ||
"It searches for printable character sequences in binaries for you and supports searching within them.", | ||
}, | ||
{ | ||
src: hexdump, | ||
alt: "Hexdump", | ||
text: '"Good ol\' hexdump."', | ||
description: | ||
"It provides detailed hexdump analysis, allowing you to view binary data in a readable hexadecimal format. You can also modify file data in hex or ASCII format.", | ||
}, | ||
]); |