?(17)
-
ctf 개인서버 대체
보호되어 있는 글입니다.
2022.01.13 -
The minCompileSdk (31) specified in a dependency's AAR metadata
android studio에서 빌드할 때 에러남 The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.appcompat:appcompat:1.4.0. AAR metadata file: C:\Users\zzre\.gradle\caches\transforms-2\files-2.1\16353d4d08c6189a4d15ac65ee153b32\appcompat-1.4.0\META-INF\com\andr..
2021.11.20 -
android 11 모든 파일 접근
# https://developer.android.com/training/data-storage/manage-all-files?hl=ko # https://stackoverflow.com/questions/65876736/how-do-you-request-manage-external-storage-permission-in-android manifest에 적고 java 코드에 Uri uri = Uri.parse("package:" + BuildConfig.APPLICATION_ID); Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION, uri); startActivity(intent); 추가하면 권한 설정 창 ..
2021.11.19 -
python3 http.server
# zzre@DESKTOP-BFP8LJ4:~/test$ python3 -m http.server 12312 import requests from pwn import * # requests log.info("requests") res = requests.get("http://0.0.0.0:12312/integer/test1.c") print(res.text) # nc log.info("nc") r = remote("localhost", 12312) r.send("""GET /integer/test2.c HTTP/1.1 """.replace("\n", "\r\n").encode()) context.log_level = 'debug' r.interactive()
2021.09.29 -
android studio 디버그
... import android.util.Log; public class MainActivity extends AppCompatActivity { private final static String TAG = MainActivity.class.getSimpleName(); ... Log.d(TAG, "hello"); ... } try { ... } catch (IOException e) { StringWriter sw = new StringWriter(); e.printStackTrace(new PrintWriter(sw)); String exceptionAsString = sw.toString(); Log.e("IOException!", exceptionAsString); }
2021.09.24 -
부동소수점
s (1비트) + exp (k비트) + frac 1. Normalized values : exp != 0b00...0 && exp != 0b11...1 값 = (-1)^s * 1.frac * 2^E bias = 2^(k - 1) - 1 => 0b01...1 E = exp - bias (-127 ~ 128 → 0b00..0, 0b11...1 제외하면 -126 ~ 127) frac (0 ~ 1 - ε) => 1.frac : 1 ~ 2 - ε ex) s = 0, frac = 0b110..0, exp = 0b01111111 E = exp - 127 (bias) = 0 1.frac = 1 + 1/2 + 1/4 = 1.75 값 = (-1)^s * 1.75 * 1 = 1.75 ex) 7.5를 float으로 7.5 (..
2021.08.14