david942j / one_gadget

The best tool for finding one gadget RCE in libc.so.6
MIT License
2.07k stars 139 forks source link

UnsupportedArchitectureError is raised if the system locale is non-english #73

Closed ghost closed 5 years ago

ghost commented 5 years ago

Objdump that supports architecture "amd64" is not found 系统版本 ubuntu 16.04 objdump 版本 GNU objdump (GNU Binutils for Ubuntu) 2.26.1

ghost commented 5 years ago

错误提示 [OneGadget] UnsupportedArchitectureError: Objdump that supports architecture "amd64" is not found! Please install the package 'binutils-multiarch' and try one_gadget again!

        For Ubuntu users:
          $ [sudo] apt install binutils-multiarch

$ objdump --help:

用法:objdump <选项> <文件>
 显示来自目标 <文件> 的信息。
 至少必须给出以下选项之一:
  -a, --archive-headers    Display archive header information
  -f, --file-headers       Display the contents of the overall file header
  -p, --private-headers    Display object format specific file header contents
  -P, --private=OPT,OPT... Display object format specific contents
  -h, --[section-]headers  Display the contents of the section headers
  -x, --all-headers        Display the contents of all headers
  -d, --disassemble        Display assembler contents of executable sections
  -D, --disassemble-all    Display assembler contents of all sections
  -S, --source             Intermix source code with disassembly
  -s, --full-contents      Display the full contents of all sections requested
  -g, --debugging          Display debug information in object file
  -e, --debugging-tags     Display debug information using ctags style
  -G, --stabs              Display (in raw form) any STABS info in the file
  -W[lLiaprmfFsoRt] or
  --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,
          =frames-interp,=str,=loc,=Ranges,=pubtypes,
          =gdb_index,=trace_info,=trace_abbrev,=trace_aranges,
          =addr,=cu_index]
                           Display DWARF info in the file
  -t, --syms               Display the contents of the symbol table(s)
  -T, --dynamic-syms       Display the contents of the dynamic symbol table
  -r, --reloc              Display the relocation entries in the file
  -R, --dynamic-reloc      Display the dynamic relocation entries in the file
  @<file>                  Read options from <file>
  -v, --version            Display this program's version number
  -i, --info               List object formats and architectures supported
  -H, --help               Display this information

 以下选项是可选的:
  -b, --target=BFDNAME           将标的目标文件格式指定为 BFDNAME
  -m, --architecture=MACHINE     将标的体系结构指定为 MACHINE
  -j, --section=NAME             只显示 NAME 节的信息
  -M, --disassembler-options=OPT 将文本传递到 OPT 反汇编程序
  -EB --endian=big               反汇编时假定高位字节在前
  -EL --endian=little            反汇编时假定低位字节在前
      --file-start-context       从文件的起点引入上下文 (带有 -S)
  -l, --line-numbers             在输出中给出行号和文件名
  -C, --demangle[=STYLE]         对修饰过的 (mangled) 符号名进行解码
                                  如果给出了 STYLE,STYLE 可能为“auto”、“gnu”、
                                  “lucid”、“arm”、“hp”、“edg”或“gnu-new-abi”
  -w, --wide                     以多于 80 列的宽度对输出进行格式化
  -z, --disassemble-zeroes       反汇编时不要跳过为零的块
      --start-address=ADDR       只有进程数据的地址 >= ADDR
      --stop-address=ADDR        只有进程数据的地址 <= ADDR
      --prefix-addresses         同反汇编代码并列显示完整的地址
      --[no-]show-raw-insn       同符号反汇编并列显示十六进制值
      --adjust-vma=OFFSET        为所有显示的节地址增加 OFFSET
      --dwarf-depth=N        Do not display DIEs at depth N or greater
      --dwarf-start=N        Display DIEs starting with N, at the same depth
                             or deeper
      --dwarf-check          Make additional dwarf internal consistency checks.      

objdump:支持的目标: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-alpha ecoff-littlealpha elf32-hppa-linux elf32-hppa elf32-m32r-linux elf32-m32rle-linux elf32-m68k a.out-m68k-linux coff-m68k versados ieee a.out-zero-big elf32-tradbigmips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 aix5coff64-rs6000 elf64-s390 elf32-s390 elf32-shbig-linux elf32-sh-linux elf32-sh64-linux elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux elf32-sh-fdpic elf32-shbig-fdpic elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex
objdump:支持的体系结构: i386 i386:x86-64 i386:x64-32 i8086 i386:intel i386:x86-64:intel i386:x64-32:intel i386:nacl i386:x86-64:nacl i386:x64-32:nacl iamcu iamcu:intel l1om l1om:intel k1om k1om:intel aarch64 aarch64:ilp32 arm armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t armv5te xscale ep9312 iwmmxt iwmmxt2 alpha alpha:ev4 alpha:ev5 alpha:ev6 hppa1.1 hppa2.0w hppa2.0 hppa1.0 m32r m32rx m32r2 m68k m68k:68000 m68k:68008 m68k:68010 m68k:68020 m68k:68030 m68k:68040 m68k:68060 m68k:cpu32 m68k:fido m68k:isa-a:nodiv m68k:isa-a m68k:isa-a:mac m68k:isa-a:emac m68k:isa-aplus m68k:isa-aplus:mac m68k:isa-aplus:emac m68k:isa-b:nousp m68k:isa-b:nousp:mac m68k:isa-b:nousp:emac m68k:isa-b m68k:isa-b:mac m68k:isa-b:emac m68k:isa-b:float m68k:isa-b:float:mac m68k:isa-b:float:emac m68k:isa-c m68k:isa-c:mac m68k:isa-c:emac m68k:isa-c:nodiv m68k:isa-c:nodiv:mac m68k:isa-c:nodiv:emac m68k:5200 m68k:5206e m68k:5307 m68k:5407 m68k:528x m68k:521x m68k:5249 m68k:547x m68k:548x m68k:cfv4e mips mips:3000 mips:3900 mips:4000 mips:4010 mips:4100 mips:4111 mips:4120 mips:4300 mips:4400 mips:4600 mips:4650 mips:5000 mips:5400 mips:5500 mips:5900 mips:6000 mips:7000 mips:8000 mips:9000 mips:10000 mips:12000 mips:14000 mips:16000 mips:16 mips:mips5 mips:isa32 mips:isa32r2 mips:isa32r3 mips:isa32r5 mips:isa32r6 mips:isa64 mips:isa64r2 mips:isa64r3 mips:isa64r5 mips:isa64r6 mips:sb1 mips:loongson_2e mips:loongson_2f mips:loongson_3a mips:octeon mips:octeon+ mips:octeon2 mips:octeon3 mips:xlr mips:micromips rs6000:6000 rs6000:rs1 rs6000:rsc rs6000:rs2 powerpc:common64 powerpc:common powerpc:603 powerpc:EC603e powerpc:604 powerpc:403 powerpc:601 powerpc:620 powerpc:630 powerpc:a35 powerpc:rs64ii powerpc:rs64iii powerpc:7400 powerpc:e500 powerpc:e500mc powerpc:e500mc64 powerpc:MPC8XX powerpc:750 powerpc:titan powerpc:vle powerpc:e5500 powerpc:e6500 s390:64-bit s390:31-bit sh sh2 sh2e sh-dsp sh3 sh3-nommu sh3-dsp sh3e sh4 sh4a sh4al-dsp sh4-nofpu sh4-nommu-nofpu sh4a-nofpu sh2a sh2a-nofpu sh2a-nofpu-or-sh4-nommu-nofpu sh2a-nofpu-or-sh3-nommu sh2a-or-sh4 sh2a-or-sh3e sh5 sparc sparc:sparclet sparc:sparclite sparc:v8plus sparc:v8plusa sparc:sparclite_le sparc:v9 sparc:v9a sparc:v8plusb sparc:v9b plugin

下列 AARCH64 特定的反汇编器选项可通过 -M 开关启用(使用逗号分隔多个选项):

  no-aliases         不要打印指令别名。

  aliases            要打印指令别名。

下列 ARM 特定的反汇编器选项在使用 -M 开关时可用:
  reg-names-special-atpcs  Select special register names used in the ATPCS
  reg-names-atpcs          Select register names used in the ATPCS
  reg-names-apcs           Select register names used in the APCS
  reg-names-std            Select register names used in ARM's ISA documentation
  reg-names-gcc            Select register names used by GCC
  reg-names-raw            Select raw register names
  force-thumb              Assume all insns are Thumb insns
  no-force-thumb           Examine preceding label to determine an insn's type

下列 MIPS 特定的反汇编器选项可通过 -M 开关启用(使用逗号分隔多个选项):

  msa             识别 MSA 指令。

  virt            识别虚拟化 ASE 指令。

  xpa            Recognize the eXtended Physical Address (XPA) ASE instructions.

  gpr-names=ABI            根据指定的 ABI 打印通用寄存器名。
                           默认:根据被反汇编的二进制文件。

  fpr-names=ABI            根据指定的 ABI 打印浮点寄存器名。
                           默认:数字。

  cp0-names=ARCH           根据指定的架构打印 CP0 寄存器名。
                           默认:根据被反汇编的二进制代码。

  hwr-names=ARCH           根据指定的架构打印 HWR 寄存器名。
                           默认:根据被反汇编的二进制代码。

  reg-names=ABI            根据指定的 ABI 打印通用寄存器和浮点寄存
                           器名。

  reg-names=ARCH           根据指定的架构打印 CP0 和 HWR 寄存器名。

  对于以上的选项,以下值可被用于 "ABI":
    numeric 32 n32 64

  对于以上的选项,以下值可被用于 "ARCH":
    numeric r3000 r3900 r4000 r4010 vr4100 vr4111 vr4120 r4300 r4400 r4600 r4650 r5000 vr5400 vr5500 r5900 r6000 rm7000 rm9000 r8000 r10000 r12000 r14000 r16000 mips5 mips32 mips32r2 mips32r3 mips32r5 mips32r6 mips64 mips64r2 mips64r3 mips64r5 mips64r6 sb1 loongson2e loongson2f loongson3a octeon octeon+ octeon2 octeon3 xlr xlp

下列 PPC 特定的反汇编器选项在使用 -M 开关时可用(使用逗号分隔多个选项):
 403, 405, 440, 464, 476, 601, 603, 604, 620, 7400, 7410, 7450, 7455,
 750cl, 821, 850, 860, a2, altivec, any, booke, booke32, cell, com,
 e300, e500, e500mc, e500mc64, e5500, e6500, e500x2, efs, power4, power5,
 power6, power7, power8, power9, ppc, ppc32, ppc64, ppc64bridge, ppcps,
 pwr, pwr2, pwr4, pwr5, pwr5x, pwr6, pwr7, pwr8, pwr9, pwrx, spe, titan,
 vle, vsx, htm, 32, 64

下列 i386/x86-64 特定的反汇编器选项在使用 -M 开关时可用(使用逗号分隔多个选项):
  x86-64      Disassemble in 64bit mode
  i386        Disassemble in 32bit mode
  i8086       在 16 位模式下反汇编
  att         用 AT&T 语法显示指令
  intel       用 Intel 语法显示指令
  att-mnemonic
              Display instruction in AT&T mnemonic
  intel-mnemonic
              Display instruction in Intel mnemonic
  addr64      假定 64 位地址大小
  addr32      假定 32 位地址大小
  addr16      假定 16 位地址大小
  data32      假定 32 位数据大小
  data16      假定 16 位数据大小
  suffix      在 AT&T 语法中始终显示指令后缀
  amd64       Display instruction in AMD64 ISA
  intel64     Display instruction in Intel64 ISA

下列 S/390 特定的反汇编器选项可通过 -M 开关启用(使用逗号分隔多个选项):
  esa         在 ESA 架构模式下反汇编
  zarch       Disassemble in z/Architecture mode
将 bug 报告到 <http://www.sourceware.org/bugzilla/>。

$ objdump -i

BFD 头文件版本 (GNU Binutils for Ubuntu) 2.26.1
elf64-x86-64
 (header 小端序, data 小端序)
  i386
elf32-i386
 (header 小端序, data 小端序)
  i386
elf32-iamcu
 (header 小端序, data 小端序)
  iamcu
elf32-x86-64
 (header 小端序, data 小端序)
  i386
a.out-i386-linux
 (header 小端序, data 小端序)
  m68k
  sparc
  mips
  i386
  arm
pei-i386
 (header 小端序, data 小端序)
  i386
pei-x86-64
 (header 小端序, data 小端序)
  i386
elf64-l1om
 (header 小端序, data 小端序)
  l1om
elf64-k1om
 (header 小端序, data 小端序)
  k1om
elf64-little
 (header 小端序, data 小端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
elf64-big
 (header 大端序, data 大端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
elf32-little
 (header 小端序, data 小端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
elf32-big
 (header 大端序, data 大端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
elf64-littleaarch64
 (header 小端序, data 小端序)
  aarch64
elf64-bigaarch64
 (header 大端序, data 大端序)
  aarch64
elf32-littleaarch64
 (header 小端序, data 小端序)
  aarch64
elf32-bigaarch64
 (header 大端序, data 大端序)
  aarch64
elf32-littlearm
 (header 小端序, data 小端序)
  arm
elf32-bigarm
 (header 大端序, data 大端序)
  arm
elf64-alpha
 (header 小端序, data 小端序)
  alpha
ecoff-littlealpha
 (header 小端序, data 小端序)
  alpha
elf32-hppa-linux
 (header 大端序, data 大端序)
  hppa1.0
elf32-hppa
 (header 大端序, data 大端序)
  hppa1.0
elf32-m32r-linux
 (header 大端序, data 大端序)
  m32r
elf32-m32rle-linux
 (header 小端序, data 小端序)
  m32r
elf32-m68k
 (header 大端序, data 大端序)
  m68k
a.out-m68k-linux
 (header 大端序, data 大端序)
  m68k
  sparc
  mips
  i386
  arm
coff-m68k
 (header 大端序, data 大端序)
  m68k
versados
 (header 大端序, data 大端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
ieee
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
a.out-zero-big
 (header 大端序, data 大端序)
  m68k
  sparc
elf32-tradbigmips
 (header 大端序, data 大端序)
  mips
elf32-tradlittlemips
 (header 小端序, data 小端序)
  mips
ecoff-bigmips
 (header 大端序, data 大端序)
  mips
ecoff-littlemips
 (header 小端序, data 小端序)
  mips
elf32-ntradbigmips
 (header 大端序, data 大端序)
  mips
elf64-tradbigmips
 (header 大端序, data 大端序)
  mips
elf32-ntradlittlemips
 (header 小端序, data 小端序)
  mips
elf64-tradlittlemips
 (header 小端序, data 小端序)
  mips
elf32-powerpc
 (header 大端序, data 大端序)
  powerpc:common64
aixcoff-rs6000
 (header 大端序, data 大端序)
  powerpc:common64
  rs6000:6000
elf32-powerpcle
 (header 小端序, data 小端序)
  powerpc:common64
ppcboot
 (header 小端序, data 大端序)
  powerpc:common64
elf64-powerpc
 (header 大端序, data 大端序)
  powerpc:common64
elf64-powerpcle
 (header 小端序, data 小端序)
  powerpc:common64
aixcoff64-rs6000
 (header 大端序, data 大端序)
  powerpc:common64
  rs6000:6000
aix5coff64-rs6000
 (header 大端序, data 大端序)
  powerpc:common64
  rs6000:6000
elf64-s390
 (header 大端序, data 大端序)
  s390:64-bit
elf32-s390
 (header 大端序, data 大端序)
  s390:64-bit
elf32-shbig-linux
 (header 大端序, data 大端序)
  sh
elf32-sh-linux
 (header 小端序, data 小端序)
  sh
elf32-sh64-linux
 (header 小端序, data 小端序)
  sh
elf32-sh64big-linux
 (header 大端序, data 大端序)
  sh
elf64-sh64-linux
 (header 小端序, data 小端序)
  sh
elf64-sh64big-linux
 (header 大端序, data 大端序)
  sh
elf32-sh-fdpic
 (header 小端序, data 小端序)
  sh
elf32-shbig-fdpic
 (header 大端序, data 大端序)
  sh
elf32-sparc
 (header 大端序, data 大端序)
  sparc
a.out-sparc-linux
 (header 小端序, data 小端序)
  m68k
  sparc
  mips
  i386
  arm
elf64-sparc
 (header 大端序, data 大端序)
  sparc
a.out-sunos-big
 (header 大端序, data 大端序)
  m68k
  sparc
pe-x86-64
 (header 小端序, data 小端序)
  i386
pe-bigobj-x86-64
 (header 小端序, data 小端序)
  i386
pe-i386
 (header 小端序, data 小端序)
  i386
plugin
 (header 小端序, data 小端序)
srec
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
symbolsrec
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
verilog
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
tekhex
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
binary
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64
ihex
 (header 未知的端序, data 未知的端序)
  m68k
  sparc
  mips
  i386
  l1om
  k1om
  iamcu
  plugin
  powerpc:common64
  rs6000:6000
  hppa1.0
  sh
  alpha
  arm
  m32r
  s390:64-bit
  aarch64

               elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 
          m68k ------------ ---------- ----------- ------------ 
         sparc ------------ ---------- ----------- ------------ 
          mips ------------ ---------- ----------- ------------ 
          i386 elf64-x86-64 elf32-i386 ----------- elf32-x86-64 
          l1om ------------ ---------- ----------- ------------ 
          k1om ------------ ---------- ----------- ------------ 
         iamcu ------------ ---------- elf32-iamcu ------------ 
        plugin ------------ ---------- ----------- ------------ 
powerpc:common64 ------------ ---------- ----------- ------------ 
   rs6000:6000 ------------ ---------- ----------- ------------ 
       hppa1.0 ------------ ---------- ----------- ------------ 
            sh ------------ ---------- ----------- ------------ 
         alpha ------------ ---------- ----------- ------------ 
           arm ------------ ---------- ----------- ------------ 
          m32r ------------ ---------- ----------- ------------ 
   s390:64-bit ------------ ---------- ----------- ------------ 
       aarch64 ------------ ---------- ----------- ------------ 

               a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om 
          m68k a.out-i386-linux -------- ---------- ---------- ---------- 
         sparc a.out-i386-linux -------- ---------- ---------- ---------- 
          mips a.out-i386-linux -------- ---------- ---------- ---------- 
          i386 a.out-i386-linux pei-i386 pei-x86-64 ---------- ---------- 
          l1om ---------------- -------- ---------- elf64-l1om ---------- 
          k1om ---------------- -------- ---------- ---------- elf64-k1om 
         iamcu ---------------- -------- ---------- ---------- ---------- 
        plugin ---------------- -------- ---------- ---------- ---------- 
powerpc:common64 ---------------- -------- ---------- ---------- ---------- 
   rs6000:6000 ---------------- -------- ---------- ---------- ---------- 
       hppa1.0 ---------------- -------- ---------- ---------- ---------- 
            sh ---------------- -------- ---------- ---------- ---------- 
         alpha ---------------- -------- ---------- ---------- ---------- 
           arm a.out-i386-linux -------- ---------- ---------- ---------- 
          m32r ---------------- -------- ---------- ---------- ---------- 
   s390:64-bit ---------------- -------- ---------- ---------- ---------- 
       aarch64 ---------------- -------- ---------- ---------- ---------- 

               elf64-little elf64-big elf32-little elf32-big 
          m68k elf64-little elf64-big elf32-little elf32-big 
         sparc elf64-little elf64-big elf32-little elf32-big 
          mips elf64-little elf64-big elf32-little elf32-big 
          i386 elf64-little elf64-big elf32-little elf32-big 
          l1om elf64-little elf64-big elf32-little elf32-big 
          k1om elf64-little elf64-big elf32-little elf32-big 
         iamcu elf64-little elf64-big elf32-little elf32-big 
        plugin elf64-little elf64-big elf32-little elf32-big 
powerpc:common64 elf64-little elf64-big elf32-little elf32-big 
   rs6000:6000 elf64-little elf64-big elf32-little elf32-big 
       hppa1.0 elf64-little elf64-big elf32-little elf32-big 
            sh elf64-little elf64-big elf32-little elf32-big 
         alpha elf64-little elf64-big elf32-little elf32-big 
           arm elf64-little elf64-big elf32-little elf32-big 
          m32r elf64-little elf64-big elf32-little elf32-big 
   s390:64-bit elf64-little elf64-big elf32-little elf32-big 
       aarch64 elf64-little elf64-big elf32-little elf32-big 

               elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 
          m68k ------------------- ---------------- ------------------- 
         sparc ------------------- ---------------- ------------------- 
          mips ------------------- ---------------- ------------------- 
          i386 ------------------- ---------------- ------------------- 
          l1om ------------------- ---------------- ------------------- 
          k1om ------------------- ---------------- ------------------- 
         iamcu ------------------- ---------------- ------------------- 
        plugin ------------------- ---------------- ------------------- 
powerpc:common64 ------------------- ---------------- ------------------- 
   rs6000:6000 ------------------- ---------------- ------------------- 
       hppa1.0 ------------------- ---------------- ------------------- 
            sh ------------------- ---------------- ------------------- 
         alpha ------------------- ---------------- ------------------- 
           arm ------------------- ---------------- ------------------- 
          m32r ------------------- ---------------- ------------------- 
   s390:64-bit ------------------- ---------------- ------------------- 
       aarch64 elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 

               elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-alpha 
          m68k ---------------- --------------- ------------ ----------- 
         sparc ---------------- --------------- ------------ ----------- 
          mips ---------------- --------------- ------------ ----------- 
          i386 ---------------- --------------- ------------ ----------- 
          l1om ---------------- --------------- ------------ ----------- 
          k1om ---------------- --------------- ------------ ----------- 
         iamcu ---------------- --------------- ------------ ----------- 
        plugin ---------------- --------------- ------------ ----------- 
powerpc:common64 ---------------- --------------- ------------ ----------- 
   rs6000:6000 ---------------- --------------- ------------ ----------- 
       hppa1.0 ---------------- --------------- ------------ ----------- 
            sh ---------------- --------------- ------------ ----------- 
         alpha ---------------- --------------- ------------ elf64-alpha 
           arm ---------------- elf32-littlearm elf32-bigarm ----------- 
          m32r ---------------- --------------- ------------ ----------- 
   s390:64-bit ---------------- --------------- ------------ ----------- 
       aarch64 elf32-bigaarch64 --------------- ------------ ----------- 

               ecoff-littlealpha elf32-hppa-linux elf32-hppa elf32-m32r-linux 
          m68k ----------------- ---------------- ---------- ---------------- 
         sparc ----------------- ---------------- ---------- ---------------- 
          mips ----------------- ---------------- ---------- ---------------- 
          i386 ----------------- ---------------- ---------- ---------------- 
          l1om ----------------- ---------------- ---------- ---------------- 
          k1om ----------------- ---------------- ---------- ---------------- 
         iamcu ----------------- ---------------- ---------- ---------------- 
        plugin ----------------- ---------------- ---------- ---------------- 
powerpc:common64 ----------------- ---------------- ---------- ---------------- 
   rs6000:6000 ----------------- ---------------- ---------- ---------------- 
       hppa1.0 ----------------- elf32-hppa-linux elf32-hppa ---------------- 
            sh ----------------- ---------------- ---------- ---------------- 
         alpha ecoff-littlealpha ---------------- ---------- ---------------- 
           arm ----------------- ---------------- ---------- ---------------- 
          m32r ----------------- ---------------- ---------- elf32-m32r-linux 
   s390:64-bit ----------------- ---------------- ---------- ---------------- 
       aarch64 ----------------- ---------------- ---------- ---------------- 

               elf32-m32rle-linux elf32-m68k a.out-m68k-linux coff-m68k 
          m68k ------------------ elf32-m68k a.out-m68k-linux coff-m68k 
         sparc ------------------ ---------- a.out-m68k-linux --------- 
          mips ------------------ ---------- a.out-m68k-linux --------- 
          i386 ------------------ ---------- a.out-m68k-linux --------- 
          l1om ------------------ ---------- ---------------- --------- 
          k1om ------------------ ---------- ---------------- --------- 
         iamcu ------------------ ---------- ---------------- --------- 
        plugin ------------------ ---------- ---------------- --------- 
powerpc:common64 ------------------ ---------- ---------------- --------- 
   rs6000:6000 ------------------ ---------- ---------------- --------- 
       hppa1.0 ------------------ ---------- ---------------- --------- 
            sh ------------------ ---------- ---------------- --------- 
         alpha ------------------ ---------- ---------------- --------- 
           arm ------------------ ---------- a.out-m68k-linux --------- 
          m32r elf32-m32rle-linux ---------- ---------------- --------- 
   s390:64-bit ------------------ ---------- ---------------- --------- 
       aarch64 ------------------ ---------- ---------------- --------- 

               versados ieee a.out-zero-big elf32-tradbigmips 
          m68k versados ieee a.out-zero-big ----------------- 
         sparc versados ieee a.out-zero-big ----------------- 
          mips versados ieee -------------- elf32-tradbigmips 
          i386 versados ieee -------------- ----------------- 
          l1om versados ieee -------------- ----------------- 
          k1om versados ieee -------------- ----------------- 
         iamcu versados ieee -------------- ----------------- 
        plugin versados ieee -------------- ----------------- 
powerpc:common64 versados ieee -------------- ----------------- 
   rs6000:6000 versados ieee -------------- ----------------- 
       hppa1.0 versados ieee -------------- ----------------- 
            sh versados ieee -------------- ----------------- 
         alpha versados ieee -------------- ----------------- 
           arm versados ieee -------------- ----------------- 
          m32r versados ieee -------------- ----------------- 
   s390:64-bit versados ieee -------------- ----------------- 
       aarch64 versados ieee -------------- ----------------- 

               elf32-tradlittlemips ecoff-bigmips ecoff-littlemips 
          m68k -------------------- ------------- ---------------- 
         sparc -------------------- ------------- ---------------- 
          mips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips 
          i386 -------------------- ------------- ---------------- 
          l1om -------------------- ------------- ---------------- 
          k1om -------------------- ------------- ---------------- 
         iamcu -------------------- ------------- ---------------- 
        plugin -------------------- ------------- ---------------- 
powerpc:common64 -------------------- ------------- ---------------- 
   rs6000:6000 -------------------- ------------- ---------------- 
       hppa1.0 -------------------- ------------- ---------------- 
            sh -------------------- ------------- ---------------- 
         alpha -------------------- ------------- ---------------- 
           arm -------------------- ------------- ---------------- 
          m32r -------------------- ------------- ---------------- 
   s390:64-bit -------------------- ------------- ---------------- 
       aarch64 -------------------- ------------- ---------------- 

               elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips 
          m68k ------------------ ----------------- --------------------- 
         sparc ------------------ ----------------- --------------------- 
          mips elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips 
          i386 ------------------ ----------------- --------------------- 
          l1om ------------------ ----------------- --------------------- 
          k1om ------------------ ----------------- --------------------- 
         iamcu ------------------ ----------------- --------------------- 
        plugin ------------------ ----------------- --------------------- 
powerpc:common64 ------------------ ----------------- --------------------- 
   rs6000:6000 ------------------ ----------------- --------------------- 
       hppa1.0 ------------------ ----------------- --------------------- 
            sh ------------------ ----------------- --------------------- 
         alpha ------------------ ----------------- --------------------- 
           arm ------------------ ----------------- --------------------- 
          m32r ------------------ ----------------- --------------------- 
   s390:64-bit ------------------ ----------------- --------------------- 
       aarch64 ------------------ ----------------- --------------------- 

               elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 
          m68k -------------------- ------------- -------------- 
         sparc -------------------- ------------- -------------- 
          mips elf64-tradlittlemips ------------- -------------- 
          i386 -------------------- ------------- -------------- 
          l1om -------------------- ------------- -------------- 
          k1om -------------------- ------------- -------------- 
         iamcu -------------------- ------------- -------------- 
        plugin -------------------- ------------- -------------- 
powerpc:common64 -------------------- elf32-powerpc aixcoff-rs6000 
   rs6000:6000 -------------------- ------------- aixcoff-rs6000 
       hppa1.0 -------------------- ------------- -------------- 
            sh -------------------- ------------- -------------- 
         alpha -------------------- ------------- -------------- 
           arm -------------------- ------------- -------------- 
          m32r -------------------- ------------- -------------- 
   s390:64-bit -------------------- ------------- -------------- 
       aarch64 -------------------- ------------- -------------- 

               elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle 
          m68k --------------- ------- ------------- --------------- 
         sparc --------------- ------- ------------- --------------- 
          mips --------------- ------- ------------- --------------- 
          i386 --------------- ------- ------------- --------------- 
          l1om --------------- ------- ------------- --------------- 
          k1om --------------- ------- ------------- --------------- 
         iamcu --------------- ------- ------------- --------------- 
        plugin --------------- ------- ------------- --------------- 
powerpc:common64 elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle 
   rs6000:6000 --------------- ------- ------------- --------------- 
       hppa1.0 --------------- ------- ------------- --------------- 
            sh --------------- ------- ------------- --------------- 
         alpha --------------- ------- ------------- --------------- 
           arm --------------- ------- ------------- --------------- 
          m32r --------------- ------- ------------- --------------- 
   s390:64-bit --------------- ------- ------------- --------------- 
       aarch64 --------------- ------- ------------- --------------- 

               aixcoff64-rs6000 aix5coff64-rs6000 elf64-s390 elf32-s390 
          m68k ---------------- ----------------- ---------- ---------- 
         sparc ---------------- ----------------- ---------- ---------- 
          mips ---------------- ----------------- ---------- ---------- 
          i386 ---------------- ----------------- ---------- ---------- 
          l1om ---------------- ----------------- ---------- ---------- 
          k1om ---------------- ----------------- ---------- ---------- 
         iamcu ---------------- ----------------- ---------- ---------- 
        plugin ---------------- ----------------- ---------- ---------- 
powerpc:common64 aixcoff64-rs6000 aix5coff64-rs6000 ---------- ---------- 
   rs6000:6000 aixcoff64-rs6000 aix5coff64-rs6000 ---------- ---------- 
       hppa1.0 ---------------- ----------------- ---------- ---------- 
            sh ---------------- ----------------- ---------- ---------- 
         alpha ---------------- ----------------- ---------- ---------- 
           arm ---------------- ----------------- ---------- ---------- 
          m32r ---------------- ----------------- ---------- ---------- 
   s390:64-bit ---------------- ----------------- elf64-s390 elf32-s390 
       aarch64 ---------------- ----------------- ---------- ---------- 

               elf32-shbig-linux elf32-sh-linux elf32-sh64-linux 
          m68k ----------------- -------------- ---------------- 
         sparc ----------------- -------------- ---------------- 
          mips ----------------- -------------- ---------------- 
          i386 ----------------- -------------- ---------------- 
          l1om ----------------- -------------- ---------------- 
          k1om ----------------- -------------- ---------------- 
         iamcu ----------------- -------------- ---------------- 
        plugin ----------------- -------------- ---------------- 
powerpc:common64 ----------------- -------------- ---------------- 
   rs6000:6000 ----------------- -------------- ---------------- 
       hppa1.0 ----------------- -------------- ---------------- 
            sh elf32-shbig-linux elf32-sh-linux elf32-sh64-linux 
         alpha ----------------- -------------- ---------------- 
           arm ----------------- -------------- ---------------- 
          m32r ----------------- -------------- ---------------- 
   s390:64-bit ----------------- -------------- ---------------- 
       aarch64 ----------------- -------------- ---------------- 

               elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux 
          m68k ------------------- ---------------- ------------------- 
         sparc ------------------- ---------------- ------------------- 
          mips ------------------- ---------------- ------------------- 
          i386 ------------------- ---------------- ------------------- 
          l1om ------------------- ---------------- ------------------- 
          k1om ------------------- ---------------- ------------------- 
         iamcu ------------------- ---------------- ------------------- 
        plugin ------------------- ---------------- ------------------- 
powerpc:common64 ------------------- ---------------- ------------------- 
   rs6000:6000 ------------------- ---------------- ------------------- 
       hppa1.0 ------------------- ---------------- ------------------- 
            sh elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux 
         alpha ------------------- ---------------- ------------------- 
           arm ------------------- ---------------- ------------------- 
          m32r ------------------- ---------------- ------------------- 
   s390:64-bit ------------------- ---------------- ------------------- 
       aarch64 ------------------- ---------------- ------------------- 

               elf32-sh-fdpic elf32-shbig-fdpic elf32-sparc a.out-sparc-linux 
          m68k -------------- ----------------- ----------- a.out-sparc-linux 
         sparc -------------- ----------------- elf32-sparc a.out-sparc-linux 
          mips -------------- ----------------- ----------- a.out-sparc-linux 
          i386 -------------- ----------------- ----------- a.out-sparc-linux 
          l1om -------------- ----------------- ----------- ----------------- 
          k1om -------------- ----------------- ----------- ----------------- 
         iamcu -------------- ----------------- ----------- ----------------- 
        plugin -------------- ----------------- ----------- ----------------- 
powerpc:common64 -------------- ----------------- ----------- ----------------- 
   rs6000:6000 -------------- ----------------- ----------- ----------------- 
       hppa1.0 -------------- ----------------- ----------- ----------------- 
            sh elf32-sh-fdpic elf32-shbig-fdpic ----------- ----------------- 
         alpha -------------- ----------------- ----------- ----------------- 
           arm -------------- ----------------- ----------- a.out-sparc-linux 
          m32r -------------- ----------------- ----------- ----------------- 
   s390:64-bit -------------- ----------------- ----------- ----------------- 
       aarch64 -------------- ----------------- ----------- ----------------- 

               elf64-sparc a.out-sunos-big pe-x86-64 pe-bigobj-x86-64 pe-i386 
          m68k ----------- a.out-sunos-big --------- ---------------- ------- 
         sparc elf64-sparc a.out-sunos-big --------- ---------------- ------- 
          mips ----------- --------------- --------- ---------------- ------- 
          i386 ----------- --------------- pe-x86-64 pe-bigobj-x86-64 pe-i386 
          l1om ----------- --------------- --------- ---------------- ------- 
          k1om ----------- --------------- --------- ---------------- ------- 
         iamcu ----------- --------------- --------- ---------------- ------- 
        plugin ----------- --------------- --------- ---------------- ------- 
powerpc:common64 ----------- --------------- --------- ---------------- ------- 
   rs6000:6000 ----------- --------------- --------- ---------------- ------- 
       hppa1.0 ----------- --------------- --------- ---------------- ------- 
            sh ----------- --------------- --------- ---------------- ------- 
         alpha ----------- --------------- --------- ---------------- ------- 
           arm ----------- --------------- --------- ---------------- ------- 
          m32r ----------- --------------- --------- ---------------- ------- 
   s390:64-bit ----------- --------------- --------- ---------------- ------- 
       aarch64 ----------- --------------- --------- ---------------- ------- 

               plugin srec symbolsrec verilog tekhex binary ihex 
          m68k ------ srec symbolsrec verilog tekhex binary ihex 
         sparc ------ srec symbolsrec verilog tekhex binary ihex 
          mips ------ srec symbolsrec verilog tekhex binary ihex 
          i386 ------ srec symbolsrec verilog tekhex binary ihex 
          l1om ------ srec symbolsrec verilog tekhex binary ihex 
          k1om ------ srec symbolsrec verilog tekhex binary ihex 
         iamcu ------ srec symbolsrec verilog tekhex binary ihex 
        plugin ------ srec symbolsrec verilog tekhex binary ihex 
powerpc:common64 ------ srec symbolsrec verilog tekhex binary ihex 
   rs6000:6000 ------ srec symbolsrec verilog tekhex binary ihex 
       hppa1.0 ------ srec symbolsrec verilog tekhex binary ihex 
            sh ------ srec symbolsrec verilog tekhex binary ihex 
         alpha ------ srec symbolsrec verilog tekhex binary ihex 
           arm ------ srec symbolsrec verilog tekhex binary ihex 
          m32r ------ srec symbolsrec verilog tekhex binary ihex 
   s390:64-bit ------ srec symbolsrec verilog tekhex binary ihex 
       aarch64 ------ srec symbolsrec verilog tekhex binary ihex 
david942j commented 5 years ago

The bug comes from the help message of objdump is translated. one_gadget failed to recognize the supported architectures and therefore raised the error.

david942j commented 5 years ago

@IThaotian I've released version 1.7.1, the issue should be fixed. Could you help try it?

ghost commented 5 years ago

可以 但是我不知道怎么做 因为我是用gem 安装的 我用gem来升级one_gadget吗

--------------原始邮件-------------- 发件人:"david942j "notifications@github.com; 发送时间:2019年4月19日(星期五) 下午3:51 收件人:"david942j/one_gadget" one_gadget@noreply.github.com; 抄送:"IThaotian "05171683@cumt.edu.cn;"Mention "mention@noreply.github.com; 主题:Re: [david942j/one_gadget] UnsupportedArchitectureError is raised if the system locale is non-english (#73)

@IThaotian I've released version 1.7.1, the issue should be fixed. Could you help try it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

david942j commented 5 years ago

$ gem update one_gadget

ghost commented 5 years ago

bug修复了

------------------ Original ------------------ From: "david942j"notifications@github.com; Date: Fri, Apr 19, 2019 04:11 PM To: "david942j/one_gadget"one_gadget@noreply.github.com; Cc: "IThaotian"05171683@cumt.edu.cn; "Mention"mention@noreply.github.com; Subject: Re: [david942j/one_gadget] UnsupportedArchitectureError is raised if the system locale is non-english (#73)

$ gem update one_gadget

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.