https://github.com/majgis/psproxy

 

GitHub - majgis/psproxy: Executable for enablling or disabling proxy settings for Junos Pulse Secure VPN

Executable for enablling or disabling proxy settings for Junos Pulse Secure VPN - GitHub - majgis/psproxy: Executable for enablling or disabling proxy settings for Junos Pulse Secure VPN

github.com

 

Pulse Secure VPN 사용 시 네트워크 설정에 Proxy를 설정해도 Burp에 잡히지 않음.

 

설치방법

$ brew install node
$ npm i -g psproxy

 

사용법

$ sudo psproxy on
$ sudo psproxy off

'Tools' 카테고리의 다른 글

[MacOS] apktool 설치  (0) 2023.04.11
[MacOS] dex2jar 셋팅  (0) 2023.04.04
[Jadx-gui] MacOS에서 실행 에러 해결  (0) 2020.05.11
[Burp Suite] Target Scope  (0) 2020.02.14
[파이어폭스] success.txt 요청  (0) 2020.02.12

https://ibotpeaches.github.io/Apktool/install/

 

Apktool - How to Install

Install Instructions Quick Check Is at least Java 1.8 installed? Does executing java -version on command line / command prompt return 1.8 or greater? If not, please install Java 8+ and make it the default. (Java 7 will also work at this time) Windows: Down

ibotpeaches.github.io

 

이전에는 apktool.jar를 이용해서 java -jar apktool.jar 사용했었는데 개선이 됨.

java 8 버전 이상에서 구동가능함.

 

MacOS에서 설치하기.

brew install apktool

설치된 버전 확인

$ apktool -version
2.7.0

'Tools' 카테고리의 다른 글

[MacOS] psproxy  (0) 2023.04.18
[MacOS] dex2jar 셋팅  (0) 2023.04.04
[Jadx-gui] MacOS에서 실행 에러 해결  (0) 2020.05.11
[Burp Suite] Target Scope  (0) 2020.02.14
[파이어폭스] success.txt 요청  (0) 2020.02.12

1. dex2jar 다운받기

https://github.com/pxb1988/dex2jar/releases

 

Releases · pxb1988/dex2jar

Tools to work with android .dex and java .class files - pxb1988/dex2jar

github.com

위 링크에서 ZIP 파일을 다운로드 후 원하는 경로에 압축을 푼다.

 

 

2. dex2jar 경로 및 명령어 설정

.bash_profile을 열어 경로와 alias를 등록해둔다

alias dex2jar='d2j-dex2jar.sh'
export dex2jar_home='/Users/my/Tools/dex2jar/dex-tools-2.2-SNAPSHOT'
export PATH=${PATH}:${dex2jar_home}

 

3. dex2jar 실행하기

명령어를 실행해본다. 

% dex2jar
d2j-dex2jar -- convert dex to jar
usage: d2j-dex2jar [options] <file0> [file1 ... fileN]
options:
 --skip-exceptions            skip-exceptions
 -d,--debug-info              translate debug info
 -e,--exception-file <file>   detail exception file, default is $current_dir/[fi
                              le-name]-error.zip
 -f,--force                   force overwrite
 -h,--help                    Print this help message
 -n,--not-handle-exception    not handle any exceptions thrown by dex2jar
 -nc,--no-code
 -o,--output <out-jar-file>   output .jar file, default is $current_dir/[file-na
                              me]-dex2jar.jar
 -os,--optmize-synchronized   optimize-synchronized
 -p,--print-ir                print ir to System.out
 -r,--reuse-reg               reuse register while generate java .class file
 -s                           same with --topological-sort/-ts
 -ts,--topological-sort       sort block by topological, that will generate more
                               readable code, default enabled
version: reader-2.2-SNAPSHOT, translator-2.2-SNAPSHOT, ir-2.2-SNAPSHOT

 

'Tools' 카테고리의 다른 글

[MacOS] psproxy  (0) 2023.04.18
[MacOS] apktool 설치  (0) 2023.04.11
[Jadx-gui] MacOS에서 실행 에러 해결  (0) 2020.05.11
[Burp Suite] Target Scope  (0) 2020.02.14
[파이어폭스] success.txt 요청  (0) 2020.02.12

[실행 시 크래시화면]

크래시 발생

 

[에러 환경]

macOS Catalina
버전 10.15.4

MacBook Pro (16-inch, 2019)
프로세서 2.4 GHz 8코어 Intel Core i9
메모리 32GB 2667 MHz DDR4
그래픽 AMD Radeon Pro 3500M 4GB
           Intel UHD Graphics 630 1536 MB

 

[Java Ver]

- 버전별 다 실행해봤으나.. 모드 크래시 발생.

jenv versions
  system
  1.8
  1.8.0.252
  11.0
* 11.0.7
  13.0
  13.0.2
  14.0
  14.0.1

 

[에러내용]

2020-05-11 13:06:53.193 java[2068:87070] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.193 java[2068:87070] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2020-05-11 13:06:53.194 java[2068:87070] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.194 java[2068:87070] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.198 java[2068:87070] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.198 java[2068:87070] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.201 java[2068:87070] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-05-11 13:06:53.201 java[2068:87070] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].

 

[해결]

1) 기존 jadx-gui 스크립트

- JAVA_HOME설정 값에 "-"가 들어가 있다. 해당 문자를 제거해야...

$ cat /usr/local/Cellar/jadx/1.1.0_1/bin/jadx-gui

#!/bin/bash
JAVA_HOME="${JAVA_HOME:-/usr/local/opt/openjdk}" exec "/usr/local/Cellar/jadx/1.1.0_1/libexec/bin/jadx-gui" "$@"

 

2) 수정

$ chmod 755 /usr/local/Cellar/jadx/1.1.0_1/bin/jadx-gui
$ vi /usr/local/Cellar/jadx/1.1.0_1/bin/jadx-gui


#!/bin/bash
JAVA_HOME="${JAVA_HOME:/usr/local/opt/openjdk}" exec "/usr/local/Cellar/jadx/1.1.0_1/libexec/bin/jadx-gui" "$@"

 

 

 

 

 

'Tools' 카테고리의 다른 글

[MacOS] psproxy  (0) 2023.04.18
[MacOS] apktool 설치  (0) 2023.04.11
[MacOS] dex2jar 셋팅  (0) 2023.04.04
[Burp Suite] Target Scope  (0) 2020.02.14
[파이어폭스] success.txt 요청  (0) 2020.02.12

정규식을 사용하여 Scope를 지적하려면 "Use advanced scope control"을 체크하여야 합니다.

 

정규식으로 특정 도메인을 지정하기 위한 예시는 다음과 같습니다.

예) .*\.test\.com

 

Scope 지정 예시

 

 

'Tools' 카테고리의 다른 글

[MacOS] psproxy  (0) 2023.04.18
[MacOS] apktool 설치  (0) 2023.04.11
[MacOS] dex2jar 셋팅  (0) 2023.04.04
[Jadx-gui] MacOS에서 실행 에러 해결  (0) 2020.05.11
[파이어폭스] success.txt 요청  (0) 2020.02.12

파이어폭스에서 http://detectportal.firefox.com/success.txt 에 대해 약 60초마다 GET 요청을 보낸다. 

 

https://bugzilla.mozilla.org/show_bug.cgi?id=1307867에 기재된 내용에 의하면 파이어폭스가 captive portal를 감지하기 위해 보낸다고 한다. 

 

captive portal이란? 

 - 공공 WIFI 등에서 인터넷을 탐색하려고 할 때 호텔이나 공항에서 로그인 페이지 또는 약관에 동의해야하는 로그인 페이지입니다.

 

 

제거방법

1. 주소창에 "about:config"를 입력한 후 경고 창에서 "위험을 감수하고 계속"을 클릭한다.

2. 검색창에 "network.captive-portal-service.enabled"를 검색 후 "true"값을 "false"로 변경한다.

 

위와 같이 설정을 했음에도 아래의 URL이 계속 해서 요청된다면 captivedetect.canonicalURL의 값을 빈값으로 바꾸면 된다.

- http://detectportal.firefox.com/success.txt?ipv4

- http://detectportal.firefox.com/success.txt?ipv6   

 

참조

 - https://www.blackhillsinfosec.com/towards-quieter-firefox/

'Tools' 카테고리의 다른 글

[MacOS] psproxy  (0) 2023.04.18
[MacOS] apktool 설치  (0) 2023.04.11
[MacOS] dex2jar 셋팅  (0) 2023.04.04
[Jadx-gui] MacOS에서 실행 에러 해결  (0) 2020.05.11
[Burp Suite] Target Scope  (0) 2020.02.14

+ Recent posts