1"use strict";(self.webpackChunkmain_website=self.webpackChunkmain_website||[]).push([["5271"],{93532(e,s,t){t.r(s),t.d(s,{metadata:()=>i,default:()=>p,frontMatter:()=>l,contentTitle:()=>o,toc:()=>c,assets:()=>d});var i=JSON.parse('{"id":"Old CTFs/ugahacks10/musical-chairs","title":"Musical Chairs","description":"Cryptography | Easy - Musical Chairs","source":"@site/ctfs/Old CTFs/ugahacks10/musical-chairs.md","sourceDirName":"Old CTFs/ugahacks10","slug":"/Old CTFs/ugahacks10/musical-chairs","permalink":"/ctfs/Old CTFs/ugahacks10/musical-chairs","draft":false,"unlisted":false,"tags":[{"inline":true,"label":"easy","permalink":"/ctfs/tags/easy"}],"version":"current","sidebarPosition":3,"frontMatter":{"description":"Cryptography | Easy - Musical Chairs","sidebar_position":3,"tags":["easy"]},"sidebar":"tutorialSidebar","previous":{"title":"Speed","permalink":"/ctfs/Old CTFs/ugahacks10/speed"},"next":{"title":"Radio","permalink":"/ctfs/Old CTFs/ugahacks10/radio"}}'),a=t(74848),r=t(28453),n=t(99719);t(32614),t(19314);let l={description:"Cryptography | Easy - Musical Chairs",sidebar_position:3,tags:["easy"]},o="Musical Chairs",d={},c=[{value:"Challenge",id:"challenge",level:2},{value:"Solution",id:"solution",level:2},{value:"Credits",id:"credits",level:2}];function h(e){let s={a:"a",br:"br",h1:"h1",h2:"h2",header:"header",img:"img",li:"li",ol:"ol",p:"p",ul:"ul",...(0,r.R)(),...e.components},{Details:i}=s;return i||function(e,s){throw Error("Expected "+(s?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.header,{children:(0,a.jsx)(s.h1,{id:"musical-chairs",children:"Musical Chairs"})}),"\n",(0,a.jsx)(s.p,{children:"Cryptography | Easy - Musical Chairs"}),"\n",(0,a.jsx)(s.h2,{id:"challenge",children:"Challenge"}),"\n",(0,a.jsx)(s.p,{children:"Help! I can\u2019t find my friend Jimi! Why does he always do this? He left me a song, but I don\u2019t know what it means. Do you? (Please wrap your answer like such: scs{answer})"}),"\n",(0,a.jsx)(s.p,{children:(0,a.jsx)(s.img,{alt:"Message",src:t(79723).A+"",width:"714",height:"162"})}),"\n",(0,a.jsxs)(s.p,{children:[":::tip hint\n",(0,a.jsx)("b",{children:"What site has access to a plethora of cipher decoders?"}),"\n:::"]}),"\n",(0,a.jsxs)(s.p,{children:["Q1 - 100 points",(0,a.jsx)(s.br,{}),"\n","Where is Jimi?"]}),"\n",(0,a.jsx)(n.A,{hash:"e3637246ab2b612c3ea9dae64710f07a56079868828476b6106e504ee9af2a484d30310991887e0a0889a9fd33d0a3f6e7fba5580764214ae0cb08ccb6c7b540",algorithm:"sha512",googleFormUrl:"https://docs.google.com/forms/d/e/1FAIpQLSdNyA9p6HMUNiBSt_ppqolPaOZxQm9UEZ2QslxJoRnEJTtjFA/formResponse",entryId:"entry.618474535"}),"\n",(0,a.jsx)(s.h2,{id:"solution",children:"Solution"}),"\n",(0,a.jsxs)(i,{children:[(0,a.jsx)("summary",{children:"Solution Guide"}),(0,a.jsxs)(s.ol,{children:["\n",(0,a.jsxs)(s.li,{children:["Go to ",(0,a.jsx)(s.a,{href:"https://www.dcode.fr/music-sheet-cipher",children:"dcode.xyz - music sheet cipher"})]}),"\n",(0,a.jsx)(s.li,{children:"Enter in the musical notes and hit \u2018decode\u2019"}),"\n"]})]}),"\n",(0,a.jsx)(s.h2,{id:"credits",children:"Credits"}),"\n",(0,a.jsxs)(s.ul,{children:["\n",(0,a.jsx)(s.li,{children:"Author(s): Swapnil Roy (thespcrewroy)"}),"\n"]})]})}function p(e={}){let{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},79723(e,s,t){t.d(s,{A:()=>i});let i=t.p+"assets/images/sheet-music-bd9f444e38921efb3d01b064351f2bf7.png"},99719(e,s,t){t.d(s,{A:()=>o});var i=t(74848),a=t(96540),r=t(21396),n=t.n(r),l=t(94591);let o=({hash:e,algorithm:s,challengeName:t})=>{let[r,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[h,p]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=!1;return async function(){try{if(!(await (0,l.jpm)()).authenticated)return;let s=await (0,l.o_m)();!e&&s.solvedKeys.includes(t)&&(m(!0),x(!0),c("\u2705 Already solved!"))}catch{}}(),()=>{e=!0}},[t]);let b=async()=>{if(!f)if(((e,s)=>{let t=e.toLowerCase();switch(s){case"sha1":return n().SHA1(t).toString();case"sha512":return n().SHA512(t).toString();default:return t}})(r,s)===e)try{if(!(await (0,l.jpm)()).authenticated)return void c("Sign in to save solve status.");await (0,l.M34)(t,0),c("\u2705 Correct!"),p(!1),x(!0),m(!0)}catch{c("Submission failed. Try again.")}else c("\u274C Incorrect. Try again."),p(!0),x(!1)};return(0,i.jsxs)("div",{style:{maxWidth:"350px",padding:"12px 0",textAlign:"left"},children:[(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),b()},children:[(0,i.jsx)("label",{htmlFor:"password-input",style:{fontWeight:"bold",fontSize:"1rem"},children:"Submission"}),(0,i.jsx)("br",{}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"4px",marginBottom:"8px"},children:[(0,i.jsx)("input",{id:"password-input",type:"text",value:r,onChange:e=>{o(e.target.value),h&&p(!1),u&&x(!1)},placeholder:"Enter answer",style:{padding:"6px",border:u?"2px solid green":h?"2px solid red":"1px solid #ccc",borderRadius:"4px",fontSize:"1rem",flex:1,minWidth:0},disabled:f}),(0,i.jsx)("button",{type:"submit",className:"pf5-check-btn",style:{padding:"6px 16px",borderRadius:"4px",border:"1px solid black",background:"transparent",fontWeight:"bold",fontSize:"1rem",cursor:f?"not-allowed":"pointer",opacity:f?.6:1,flexShrink:0}
1,disabled:f,children:f?"Solved":"Check"}),(0,i.jsx)("button",{type:"button",className:"pf5-reset-btn",onClick:()=>{o(""),c(""),p(!1),x(!1),m(!1)},"aria-label":"Reset",title:"Reset",style:{padding:"6px 10px",borderRadius:"4px",border:"1px solid #b00020",background:"transparent",color:"#b00020",fontWeight:"bold",fontSize:"1rem",cursor:f||u?"pointer":"not-allowed",opacity:f||u?1:.45,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},disabled:!(f||u),children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",style:{display:"block"},children:(0,i.jsx)("path",{d:"M12 5a7 7 0 1 1-6.32 4H3l3.5-3.5L10 9H7.94A5 5 0 1 0 12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,i.jsx)("style",{children:` 2 [data-theme='dark'] .pf5-check-btn { 3 border: 1px solid white !important; 4 } 5 6 [data-theme='dark'] .pf5-reset-btn { 7 border: 1px solid #ff4d6d !important; 8 color: #ff4d6d !important; 9 } 10 `})]}),(0,i.jsx)("p",{style:{marginTop:"10px",fontWeight:"bold"},children:d})]})}},12298(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.