From 094c4af8897493e9b63f6f3f5ec278f572ea190c Mon Sep 17 00:00:00 2001 From: lucky-vers Date: Fri, 3 Nov 2023 00:12:14 +0530 Subject: [PATCH] Add 2Warm challenge to General Skills --- Phase 2/06 Other Domains.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Phase 2/06 Other Domains.md b/Phase 2/06 Other Domains.md index 9b11424..5722aef 100644 --- a/Phase 2/06 Other Domains.md +++ b/Phase 2/06 Other Domains.md @@ -83,3 +83,17 @@ As the third part of the flag. Combining all the parts, we get the flag as `picoCTF{xxsh_` + `0ut_0f_\/\/4t3r_` + `71be5264}` = `picoCTF{xxsh_0ut_0f_\/\/4t3r_71be5264}` **Flag:** `picoCTF{xxsh_0ut_0f_\/\/4t3r_71be5264}` + +## 2Warm + +The problem statement here is simple— to convert the number 42 from base 10 to binary. We use the `bc` (basic calculator) command for this + +``` +~ $ echo "obase=2; 42" | bc +101010 +``` + +Here, we're setting the `obase` variable to 2, indicating we want to convert the decimal integer to its binary form. As a result, we get `101010`. Thus, our flag becomes `picoCTF{101010}`. + +**Flag:** `picoCTF{xxsh_0ut_0f_\/\/4t3r_71be5264}` +