https://hackropole.fr/fr/challenges/reverse/fcsc2024-reverse-strike/
First we analyse the Main Function with Ghidra:
//main function
int main(int param_1,long param_2)
{
int iVar1;
https://hackropole.fr/fr/challenges/reverse/fcsc2024-reverse-strike/
First we analyse the Main Function with Ghidra:
//main function
int main(int param_1,long param_2)
{
int iVar1;
class Rectangle { | |
width: number; | |
height: number; | |
constructor(width: number, height: number) { | |
this.width = width; | |
this.height = height; | |
} | |
<?xml version="1.0" encoding="utf-8"?> | |
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<user>S-1-5-21-208106577-3430488093-340667708-1000</user> | |
<keys> | |
<key installerType="Msi" displayName="FxSound" displayVersion="1.1.31.0"> | |
<RegistryView>Registry64</RegistryView> | |
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{686221C2-D1C8-4EED-A285-5006FEFCAFF4}</KeyPath> | |
<DefaultValue /> | |
<InstallLocation><![CDATA[C:\Program Files\FxSound LLC\FxSound\]]></InstallLocation> | |
<UninstallString><![CDATA[MsiExec.exe /X{686221C2-D1C8-4EED-A285-5006FEFCAFF4}]]></UninstallString> |
Log uploaded on Thursday, March 13, 2025, 11:50:03 AM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4) | |
Interaction Bubbles(Jaxe.Bubbles): Bubbles(3.1.0) | |
Mood 1000(manuelribeiro.mood1000): (no assemblies) |
const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
function printAlternatingElements(arr: number[]) { | |
let left = 0; | |
let right = arr.length - 1; | |
while (left <= right) { | |
console.log(arr[left]); | |
if (left !== right) { | |
console.log(arr[right]); |
blueprint: | |
name: Ashley’s Light Fader | |
domain: script | |
author: https://gist.github.com/handcoding | |
alias: Ashley’s Light Fader | |
description: > | |
Fades a lamp over time. If you have any questions or comments about this | |
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under | |
the Apache 2.0 license. (v2.0) |
trait SomeTrait { | |
fn super_method(&self) { | |
println!("Hello world!"); | |
} | |
} | |
struct SomeStruct; | |
impl SomeTrait for SomeStruct {} |
Log uploaded on Thursday, March 13, 2025, 7:48:23 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Performance Fish(bs.performance): PerformanceFish(0.6.2) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) |
Create a program that implements a feature like a library. In a library objects were categorized as Journal, Book and Audiobook.
These 3 objects of the library object has 2 common properties in them which are Title and Publisher.
And also each of the objects has its own special properties with in them: Journal has AuthorNumber, Book has an NumberOfPages, AccessionNumber and ISBNumber and AudioBook has DurationInMinutes.
On your Program class inside the Main method, implement a code that you can add any objects of Book, Journal or AudioBook on list of library item.