Mahmoud Parham

13 papers A* 2A 2B 4Journal 3Unranked 2
YearRankTypeTitle / Venue / Authors
2022 A conf
DISC
Maciej Pacut, Mahmoud Parham, Joel Rybicki, Stefan Schmid, Jukka Suomela, Aleksandr Tereshchenko
2021 J jnl
CoRR
Maciej Pacut, Mahmoud Parham, Joel Rybicki, Stefan Schmid, Jukka Suomela, Aleksandr Tereshchenko
2021 A* conf
INFOCOM
Maciej Pacut, Mahmoud Parham, Stefan Schmid
2021 A conf
CoNEXT
Mahmoud Parham, Thomas Fenz, Nikolaus Süss, Klaus-Tycho Foerster, Stefan Schmid
2020 A* conf
PODC
Maciej Pacut, Mahmoud Parham, Stefan Schmid
2020 B conf
OPODIS
Mahmoud Parham, Klaus-Tycho Foerster, Petar Kosic, Stefan Schmid
2019 J jnl
Computing
Chen Avin, Louis Cohen, Mahmoud Parham, Stefan Schmid
2019 B conf
Networking
Saeed Akhoondian Amiri, Szymon Dudycz, Mahmoud Parham, Stefan Schmid, Sebastian Wiederrecht
2018 B conf
OPODIS
Klaus-Tycho Foerster, Mahmoud Parham, Stefan Schmid, Tao Wen
2018 J jnl
CoRR
Saeed Akhoondian Amiri, Szymon Dudycz, Mahmoud Parham, Stefan Schmid, Sebastian Wiederrecht
2018 conf
INFOCOM Workshops
Klaus-Tycho Foerster, Mahmoud Parham, Marco Chiesa, Stefan Schmid
2018 B conf
Networking
Saeed Akhoondian Amiri, Klaus-Tycho Foerster, Riko Jacob, Mahmoud Parham, Stefan Schmid
2017 conf
ALGOCLOUD
Klaus-Tycho Foerster, Mahmoud Parham, Stefan Schmid
redb/extractors/decompiler/bninja/run.py
← Index redb/extractors/decompiler/bninja/run.py python
import argparse
import json

from decompiler import BinaryNinjaDecompiler
from utils.json_encoder import BinaryNinjaEncoder


def run_from_command_line():
    parser = argparse.ArgumentParser(description="Binary Ninja Decompiler")
    parser.add_argument("filepath", help="Path to the binary file to analyze")
    parser.add_argument(
        "--output", "-o", help="Output JSON file path (default: stdout)"
    )
    parser.add_argument(
        "--timeout",
        "-t",
        type=int,
        default=1200,
        help="Analysis timeout in seconds (default: 1200)",
    )
    args = parser.parse_args()

    with BinaryNinjaDecompiler(args.filepath, args.timeout) as decompiler:
        success = decompiler.extract()

        if not success:
            decompiler.log.error("Analysis failed")
            return 1

        # Output results
        if args.output:
            with open(args.output, "w") as f:
                json.dump(decompiler.analysis_results, f, cls=BinaryNinjaEncoder)
            decompiler.log.info(f"Results written to {args.output}")
        else:
            print(json.dumps(decompiler.analysis_results, cls=BinaryNinjaEncoder))

    return 0


if __name__ == "__main__":
    run_from_command_line()