Kang Pu

18 papers Misc 1Journal 13Unranked 4
YearRankTypeTitle / Venue / Authors
2025 conf
SmartGridComm
Kang Pu, Yue Zhao, John Gorman, Philip Court
2025 J jnl
IEEE Trans. Geosci. Remote. Sens.
Peng Zhang, Xichuan Liu, Kang Pu
2025 J jnl
IEEE Trans. Comput. Soc. Syst.
Yan Kang, Baochen Fan, Ziyi Ma, Jing Guo, Tianjing Li, Kang Pu
2024 J jnl
IEEE Geosci. Remote. Sens. Lett.
Kang Pu, Xichuan Liu, Lei Liu, Yingcheng Zhao
2024 J jnl
IEEE Trans. Geosci. Remote. Sens.
Peng Zhang, Xichuan Liu, Kang Pu
2024 J jnl
IEEE Geosci. Remote. Sens. Lett.
Kang Pu, Xichuan Liu, Lei Liu, Xuejin Sun, Xueliang Zhou, Peng Zhang
2023 conf
ISGT
Kang Pu, Yue Zhao
2023 J jnl
IEEE Trans. Geosci. Remote. Sens.
Kang Pu, Xichuan Liu, Lei Liu, Xuejin Sun, Jin Ye, Peng Zhang
2023 J jnl
IEEE Trans. Geosci. Remote. Sens.
Kang Pu, Xichuan Liu, Xuejin Sun, Shulei Li
2023 conf
SmartGridComm
Kang Pu, Ce Xu, Yue Zhao
2023 Misc conf
CISS
Mian Jia, Kang Pu, Yue Zhao
2023 J jnl
Remote. Sens.
Peng Zhang, Xichuan Liu, Kang Pu
2022 conf
SmartGridComm
Kang Pu, Yue Zhao
2022 J jnl
Remote. Sens.
Yingcheng Zhao, Xichuan Liu, Lei Liu, Kang Pu, Kun Song
2022 J jnl
Remote. Sens.
Yingcheng Zhao, Xichuan Liu, Kang Pu, Jin Ye, Minghao Xian
2021 J jnl
IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.
Kang Pu, Xichuan Liu, Lei Liu, Taichang Gao
2020 J jnl
Remote. Sens.
Kang Pu, Xichuan Liu, Shuai Hu, Taichang Gao
2020 J jnl
IEEE Trans. Geosci. Remote. Sens.
Kang Pu, Xichuan Liu, Minghao Xian, Taichang Gao
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()