자유 게시판

foobar2000 alsong 가사 관련 글과 관련해서...

2019.12.25 22:32

kernel 조회:809 추천:2

foobar2000 alsong 가사 관련한 질문이 있길래 적어 봅니다.

 

            data.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
            data.Append("<SOAP-ENV:Envelope ");
            data.Append("xmlns:SOAP-ENV =\"http://www.w3.org/2003/05/soap-envelope\" ");
            data.Append("xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" ");
            data.Append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ");
            data.Append("xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" ");
            data.Append("xmlns:ns2=\"ALSongWebServer/Service1Soap\" ");
            data.Append("xmlns:ns1=\"ALSongWebServer\" ");
            data.Append("xmlns:ns3=\"ALSongWebServer/Service1Soap12\">");
            data.Append("<SOAP-ENV:Body>");
            data.Append("<ns1:GetResembleLyric2>");
            data.Append("<ns1:stQuery>");
            data.Append("<ns1:strTitle>{0}</ns1:strTitle>"); // 타이틀
            data.Append("<ns1:strArtistName>{1}</ns1:strArtistName>"); // 아티스트
            data.Append("<ns1:nCurPage>0</ns1:nCurPage>");
            data.Append("</ns1:stQuery>");
            data.Append("</ns1:GetResembleLyric2>");
            data.Append("</SOAP-ENV:Body>");
            data.Append("</SOAP-ENV:Envelope>");
 

위와 같은 Http Request 패킷을 strTitle과 ArtistName 파라미터를 치환해서

"http://lyrics.alsong.co.kr/alsongwebservice/service1.asmx" 주소로 UTF-8로 인코딩한 Soap 형식으로 보냈을 때...

"strLyric" 태그가 가사와 함께 Response 패킷으로 응답해서 넘어오지 않으면 알송에서 가사 관련 웹 인터페이스 패킷 구조를

바꿔 버린 것임.

 

알송에서 패킷구조를 바꿔버렸다면...

알송 플레이어 프로그램을 리버스 엔지니어링으로 분석해서 바뀐 패킷 구조를 해킹해서 알아내야 함.

 

 

C#으로 프로그래밍 하면 간단하니 직접 프로그래밍 해서 확인해 보세요.

 

음악에 관심도 없고, 시간도 없고 직접 foobar2000 용 플럭인 만들어서 올릴 여유가 없네요. 흐~

 

 

XE1.11.6 Layout1.4.8