Siscu.cab
Desconectado
Mensajes: 91
|
DESCRIPTION
Binwalk is a tool for searching a given binary image for embedded file types. Specifically, it was designed for identifying files embedded inside of firmware images. Binwalk uses the libmagic library, so it is compatible with the magic signatures used by the Unix file utility.
Binwalk includes a custom magic signature file, 'magic.fx'. This file contains improved signatures for files that are commonly found in firmware images such as compressed/archived files, Linux kernels, bootloaders, filesystems, etc.
USAGE
The only required option for Binwalk is the file that you want to search:
$ ./binwalk firmware.bin
By default binwalk will use the signatures from magic.fx, but you may specify any other libmagic-compatible signature file with the -m option:
$ ./binwalk -m /usr/share/misc/magic firmware.bin
By default binwalk will check for valid file signatures anywhere in the target file. This means that scanning a 4MB file is the equivalent of running the Unix file utility 4 million times. To decrease scan time, you may specify the byte alignment via the -b option. If, for example, you specify a byte alignment of 16, then binwalk will assume that everything in the file is 16-byte aligned and will only look for signatures every 16 bytes:
$ ./binwalk -b 16 firmware.bin
You may also specify at what offset into the firmware image to start searching, and how many bytes should be searched. The following command starts searches 1000 bytes starting at an offset of 100: $./binwalk -o 100 -l 1000 firmware.bin
All integer arguments, such as -o, -l and -m, can be entered as decimal (ex: 16) or hexadecimal (ex: 0x10) values.
INSTALLATION
You may copy the binwalk binary anywhere you like and run it. It will look for the magic.fx file in its local directory. If magic.fx does not exist, you must specify the location of a suitable magic file via the -m option.
DEPENDENCIES
There are no run-time code dependencies.
To build from source, you must have libmagic library. Debian users can install libmagic via apt-get:
$ sudo apt-get install libmagic-dev To compile Binwalk:
$ make
FILES
bin/binwalk Statically compiled 32-bit Linux binary bin/magic.fx Custom magic signature file src/binwalk.c Main source code file src/binwalk.h Main source header file src/Makefile Makefile for compiling source code src/README Project README file
LICENSE
The MIT License
Copyright (c) 2010 Craig Heffner
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. DESCRIPCIÓN
Binwalk es una herramienta para buscar una determinada imagen binaria para tipos de archivo incrustado. En concreto, que fue diseñado para identificar archivos incrustados en el interior de las imágenes del firmware. Binwalk utiliza el libmagic biblioteca, por lo que es compatible con la magia de las firmas utilizadas por la utilidad de archivos de Unix.
Binwalk incluye un archivo personalizado firma magia, 'magic.fx. Este archivo contiene las firmas mejor para los archivos que se encuentran comúnmente en las imágenes del firmware como comprimido / archivos archivados, Linux granos, gestores de arranque, sistemas de ficheros, etc
USO
La opción sólo se requiere para Binwalk es el archivo que desea buscar:
$. / Firmware.bin binwalk
Por defecto binwalk recurrirse a las firmas de magic.fx, pero puede especificar cualquier otro la firma libmagic compatible archivo con la opción-m:
$. / Binwalk-m / usr / share / misc / firmware.bin magia
Por binwalk defecto de verificación para la firma de archivo válido en cualquier parte del archivo de destino. Esto significa que explorando un archivo de 4 MB es el equivalente a correr la utilidad de archivos de Unix 4 millones de veces. A disminuir el tiempo de exploración, puede especificar la alineación de bytes a través de la opción-b. Si, por ejemplo, que especifique una alineación de bytes, de 16, entonces binwalk asumirá que todo en el archivo se 16-bytes alineados y sólo buscará firmas cada 16 bytes:
$. / Binwalk-b 16 firmware.bin
También puede especificar en qué posición dentro de la imagen de firmware para iniciar la búsqueda, y cuántos bytes deben ser buscados. El comando siguiente inicia las búsquedas a partir de 1000 bytes en un desplazamiento de 100:
$. / Binwalk-o 100-l 1000 firmware.bin
Todos los argumentos enteros, como por ejemplo-o,-l y m-, se puede introducir como decimal (por ejemplo: 16) o hexadecimal (Por ejemplo: 0x10) valores.
INSTALACIÓN
Usted puede copiar el binario binwalk donde quieras y ejecutarlo. El sistema examinará el magic.fx archivo en su directorio local. Si magic.fx no existe, debe especificar la ubicación de un archivo que sirva magia a través de la opción-m.
DEPENDENCIAS
No hay dependencias de código de tiempo de ejecución.
Para construir desde el código fuente, debe tener la colección de libmagic. Los usuarios de Debian pueden instalar a través de libmagic apt-get:
$ Sudo apt-get install-dev libmagic
Para compilar Binwalk:
$ Make
ARCHIVOS
bin / binwalk estáticamente compilado de 32-bit Linux binario bin / magic.fx personalizada de archivos de firma de la magia src / Código fuente principal del archivo binwalk.c src / cabecera binwalk.h fuente principal del archivo src / Makefile Makefile para la compilación de código fuente src / README Proyecto README
LICENCIA
La licencia del MIT
Copyright (c) 2010 Craig Heffner
Se autoriza, de forma gratuita, a cualquier persona que obtenga una copia de este software y archivos de documentación asociados (el "Software"), para tratar en el Software sin restricción alguna, incluyendo, sin limitación, los derechos para usar, copiar, modificar, fusionar, publicar, distribuir, sublicenciar, y / o vender copias del Software, y para permitir a las personas a las que el Software es amuebladas para hacerlo, con sujeción a las siguientes condiciones:
El aviso de copyright anterior y este aviso de permiso se incluirán en todas las copias o partes sustanciales del Software.
EL SOFTWARE SE ENTREGA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O IMPLÍCITAS, INCLUYENDO PERO NO LIMITADO A LAS GARANTÍAS DE COMERCIALIZACIÓN, IDONEIDAD PARA UN PROPÓSITO PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO, LA AUTORES O TITULARES DEL COPYRIGHT SERÁN RESPONSABLES DE NINGUNA RECLAMACIÓN, DAÑOS Y OTROS RESPONSABILIDAD, YA SEA EN UNA ACCIÓN DE CONTRATO, agravio o de otra, se deriven de su FUERA DE O EN CONEXION CON EL SOFTWARE O EL USO O OTRAS OPERACIONES EL SOFTWARE.
|