맥에서 안드로이드 usb 테더링 할 때 

아래 주소에서 설치해 주고


https://joshuawise.com/horndis


보안탭에서 신뢰클릭 하면 됨


'MEMO' 카테고리의 다른 글

ubuntu KVM 가상화 설치  (0) 2016.07.25
linux version information  (0) 2016.07.24
arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
Posted by goldpapa
,

ubuntu KVM 가상화 설치

MEMO 2016. 7. 25. 20:14

(참고)

http://www.oss.kr/oss_repository9/98713


sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

sudo apt-get install virt-manager



'MEMO' 카테고리의 다른 글

맥에서 안드로이드 usb 테더링 할 때  (0) 2018.12.09
linux version information  (0) 2016.07.24
arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
Posted by goldpapa
,

linux version information

MEMO 2016. 7. 24. 21:24

2.6.x 버전은 어떻게 되는데

2.4.ㅌ 버전은 귀찮네... 참나~~~


(참조)

https://ko.wikipedia.org/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EC%BB%A4%EB%84%90


리눅스 커널

위키백과, 우리 모두의 백과사전.



'MEMO' 카테고리의 다른 글

맥에서 안드로이드 usb 테더링 할 때  (0) 2018.12.09
ubuntu KVM 가상화 설치  (0) 2016.07.25
arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
Posted by goldpapa
,

arm 이나 mips테스트 할 때 가까 가용하는 qemu 이미지 사이트

3.2 는 apt-get 이 되는데 2.6은 apt-get 이 되지 않는다

메인 사이트가 더이상 서비스 되지 않기 때문이다.


$ sudo apt-get install build-essential


그래서 gcc를 설치하려면 위 명령어 한개만 치면 되는데

여러개 막 설치해 주어야 하고 귀찮은 일들이 많이 일어난다

이때 아카이빙을 source.lists에 넣으면 apt-get 을 사용할 수 있게 된다.

 

(참고)

데비안 아카이빙 사이트

http://archive.debian.org/debian-archive/


(참고)

qemu download

All images are 25GiB images in QCOW2 format on which a Debian Squeeze or Wheezy system has been installed. The standard images correspond to a "Standard system" installation, while the desktop images correspond to a "Standard system" + "Desktop environment" with Gnome, KDE and Xfce environments. On Wheezy the original default desktop environment is Gnome and the default display manager is GDM. These can not work in QEMU, as Gnome needs an accelerated graphics card, which is not provided by QEMU. Moreover both Gnome and GDM need more than the default 128MiB memory provided on QEMU. They have therefore been replaced respectively by Xfce and LightDM on the Wheezy desktop image. Both Gnome and GDM are still installed on the image, and the original default can be restored using the following commands: - update-alternatives --auto x-session-manager - echo /usr/sbin/gdm3 > /etc/X11/default-display-manager The other installation options are the following: - Keyboard: US - Locale: en_US - Mirror: ftp.debian.org - Hostname: debian-armel - Root password: root - User account: user - User password: user To use these images, you need to install QEMU 1.1.0 (or later). Start QEMU with the following arguments: - qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_standard.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_desktop.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_standard.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_desktop.qcow2 -append "root=/dev/sda1" By default QEMU emulates a machine with 128MiB of RAM. The -m option increases or decreases the size of the RAM. It is however limited to 256MiB. If you don't want to start QEMU in graphic mode, you can use the -nographic option. The image is configured to display a login prompt on the first serial port (ttyAMA0). If you want to switch the boot messages to the serial port, you need to add "console=ttyAMA0" after "root=/dev

(참고)

https://people.debian.org/~aurel32/qemu/armel/


'MEMO' 카테고리의 다른 글

ubuntu KVM 가상화 설치  (0) 2016.07.25
linux version information  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
Posted by goldpapa
,

크로스 컴파일 환경을 구축한다 (인터넷 참조)


Next we'll build the strace itself:


1. 최신 소스 다운로드 https://sourceforge.net/projects/strace

2. 적당히 압축을 푼다

3. cd ./strace-4.12

4. Set the necessary global variables 

export export CC=arm-linux-gnueabi-gcc

(Replace with path to your cross compiler)

5. ./configure --host=arm-linux-gnueabi --prefix='/home/w00t/strace' 

6. make 


w00t@ubuntu64svr14:~/strace-4.12$ ls strace

strace


w00t@ubuntu64svr14:~/strace-4.12$ file strace

strace: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=91104ca9b9d0ba127993601d3a9cea104b72269d, not stripped




'MEMO' 카테고리의 다른 글

linux version information  (0) 2016.07.24
arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
FATAL: kernel too old 문제  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
strace 바이너리 모음  (0) 2016.06.25
Posted by goldpapa
,

FATAL: kernel too old 문제

MEMO 2016. 7. 19. 22:43

요거 해보고 되면 올리자


핵심은 문의한 분이 올린 맨 마지막 줄...


Thank you to the above poster ecatmur -- it does indeed work to reconfigure/rebuild glibc with the configure option --enable-kernel=version

I would add the following -- you can use gcc -static -L/path/to/local/lib (big L option to the directory) and it seems to work just as well as linking to the library file itself. When I linked in the latter fashion (to /path/to/local/lib/libc.a), it created an unecessarily large executable.


[참조]

http://stackoverflow.com/questions/11206243/how-to-build-a-static-binary-for-gnu-linux-installations-with-old-kernel

'MEMO' 카테고리의 다른 글

arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
strace 바이너리 모음  (0) 2016.06.25
ARM gdb-peda 설치  (0) 2016.04.01
Posted by goldpapa
,

arm gdb cross-comile

MEMO 2016. 6. 27. 21:56

가끔 필요한테 찾으려면 취찮아지는 것


Install Arm cross-compiler (14-04, 16-04)


sudo apt-get install emdebian-archive-keyring

sudo apt-get install libc6-armel-cross libc6-dev-armel-cross

sudo apt-get install binutils-arm-linux-gnueabi

sudo apt-get install gcc-arm-linux-gnueabi

sudo apt-get install g++-arm-linux-gnueabi

sudo apt-get install u-boot-tools

sudo apt-get install libncurses5-dev


출처) http://noplanlife.com/?p=1293



At first we need to build the termcap library:

1. wget ftp://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz

2. tar xvzf termcap-1.3.1.tar.gz

3. cd ./termcap-1.3.1

4. export CC=arm-linux-gnueabi-gcc

5. ./configure --host=arm-linux-gnueabi --prefix=/home/w00t/termcap

6. make

7. make install (불필요)


Next we'll build the gdb itself:

1. wget http://ftp.gnu.org/gnu/gdb/gdb-7.10.tar.gz

2. tar xvzf gdb-7.10.tar.gz

3. cd ./gdb-7.10

4. Set the necessary global variables 

export export CC=arm-linux-gnueabi-gcc

(Replace with path to your cross compiler)


export LDFLAGS="-static -L/home/w00t/termcap/lib"

Replace the path to your TermCap library


export CFLAGS="-g -O2 -I/home/w00t/termcap/include"

Replace the path to your TermCap library


5. ./configure --host=arm-linux-gnueabi --prefix='/home/w00t/gdb' --disable-werror

6. make 

7. make install (불필요)


출처) http://tigertop.blogspot.kr/2011/03/building-gdb-72-for-arm-architecture-on.html


ubuntu64svr14:~/gdb-7.10$ file ./gdb/gdbserver/gdbserver

./gdb/gdbserver/gdbserver: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=d0e0fb8a014279d9029472ca2523739925ac9d6d, not stripped

gdbserver7.10


ubuntu64svr14:~/gdb-7.10$ file ./gdb/gdb

./gdb/gdb: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=5ee712c726e880631e060d899e88c93fd8661c82, not stripped


'MEMO' 카테고리의 다른 글

strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
strace 바이너리 모음  (0) 2016.06.25
ARM gdb-peda 설치  (0) 2016.04.01
ROPgadget Tool  (0) 2016.03.31
Posted by goldpapa
,

strace 바이너리 모음

MEMO 2016. 6. 25. 22:36

strace 가 좋아서 자주 사용하는 데

컴파일하는 것이 좀 그지 같다.

그래서 암이 필요할 때


https://github.com/andrew-d/static-binaries


여기에서 받았는데 

잘 안될 때가 있다


그래서


https://landley.net/aboriginal/downloads/old/binaries/


여기에서 받으면 잘 될때가 있는데 문제는

여기 링크를 자꾸 까먹는다.


그리고 없어질 수도 있고 그래서...

strace 만 몇개 가져왔음


strace_landley.net.zip

근데 우끼게 시리 7z 은 링크 안거리고 zip만 걸리네... 참나...

'MEMO' 카테고리의 다른 글

FATAL: kernel too old 문제  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
ARM gdb-peda 설치  (0) 2016.04.01
ROPgadget Tool  (0) 2016.03.31
hping3  (0) 2016.03.26
Posted by goldpapa
,

ARM gdb-peda 설치

MEMO 2016. 4. 1. 00:04

명령어


wget http://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.gz

tar -xvf gdb-7.4.tar.gz

./configure --with-python=python2

make

make install


gdb-peda설치 시 생기는 문제 해결법

etc/Record 2014.09.14 10:10

peda가 빠르고, 엄청난 기능들이 많다고 하길래, peda설치를 할려고 했더니, 왠걸, 이미 가지고 있는  상위버전의 gdb는 python3 대의 버전을 사용한 gdb라서, peda는 2.7버전을 사용하므로, 호환 문제 때문에 제대로 실행이 안되는 현상이 나타났다.


그래서 아래와 같이 gdb소스를 받아서 파이썬 2.7을 사용한 gdb로 컴파일 하면 된다.


1.먼저 gdb-peda소스를 받는다.

https://github.com/longld/peda


2.다음을 입력한다.

echo "source ~/peda/peda.py" >> ~/.gdbinit


3.gdb 소스를 받는다.

http://ftp.gnu.org/gnu/gdb/


4.python2.7-dev 패키지를 받는다.  (이 패키지가 없으면 2.7버전을 사용해서 gdb를 컴파일 할 수 없음)

apt-get install python2.7-dev


5.libncurses5-dev 패키지를 받는다. (이 패키지가 없으면 termcap library found 에러가 난다)

apt-get install libncurses5-dev


6.gdb 소스가 있는 디렉토리로 가서, 다음을 입력한다.


./configure --with-python=python2

make

make install


(퍼온글)

http://sanguine.leaveret.kr/98

http://egloos.zum.com/YSocks/v/533143

'MEMO' 카테고리의 다른 글

arm gdb cross-comile  (0) 2016.06.27
strace 바이너리 모음  (0) 2016.06.25
ROPgadget Tool  (0) 2016.03.31
hping3  (0) 2016.03.26
14.04에서 rtl8188cus 모듈 컴파일 하기  (0) 2016.03.23
Posted by goldpapa
,

ROPgadget Tool

MEMO 2016. 3. 31. 23:21

"Capstone 여기가 의심되는 경우는 apt-get install capstone --upgrade 를 실시해봄 ""

ROPgadget Tool

This tool lets you search your gadgets on your binaries to facilitate your ROP exploitation. ROPgadget supports ELF/PE/Mach-O format on x86, x64, ARM, ARM64, PowerPC, SPARC and MIPS architectures. Since the version 5, ROPgadget has a new core which is written in Python using Capstone disassembly framework for the gadgets search engine - The older version can be found in the Archives directory but it will not be maintained.

Install

If you want to use ROPgadget, you have to install Capstone first.

For the Capstone's installation on nix machine:

$ sudo pip install capstone

Capstone supports multi-platforms (windows, ios, android, cygwin...). For the cross-compilation, please refer to the https://github.com/aquynh/capstone/blob/master/COMPILE.TXT file.

After Capstone is installed, ROPgadget can be used as a standalone tool:

$ ROPgadget.py

Or installed into the Python site-packages library, and executed from $PATH.

$ python setup.py install
$ ROPgadget

Or installed from PyPi

$ pip install ropgadget
$ ROPgadget


#####

https://github.com/JonathanSalwan/ROPgadget/


'MEMO' 카테고리의 다른 글

strace 바이너리 모음  (0) 2016.06.25
ARM gdb-peda 설치  (0) 2016.04.01
hping3  (0) 2016.03.26
14.04에서 rtl8188cus 모듈 컴파일 하기  (0) 2016.03.23
Ubuntu 14 버전에서 peda 설치 에러  (0) 2016.03.21
Posted by goldpapa
,