All posts by RSR

Office 365, Outlook 로그인 이슈 해결

office 365 login blank screen에 대한 이미지 검색결과

로그인화면에서 메일 입력이후 흰화면만 나오기에 구글링 하다가 아래의 레지스트 발견

\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\ 하위에 Dword 값을 생성 후

DisableADALatopWAMOverrideEnableADAL 값을 0으로 바꿨다가 1로바꿨다가 막 하다보니 로그인성공

 

https://social.technet.microsoft.com/Forums/en-US/c76b6058-e42f-4467-9827-c08c688dab42/blank-login-screen-for-office-365-proplus?forum=Office2016ITPro

밥 로스

We don’t make mistakes. We have happy accidents.

If you ever do a pinting that you are totally satisfied with, you might as well quit.

But, you will never be satisfied with what you do.

If you can do things all your life that make you happy, needless to say, You are going to be a happy person.

명언만들기 참 쉽죠?

WAP2 KEY 변환

일반적으로 공유기에서 특정 ASCII를 WPA passphrase로 사용하지 못하게 막고있다.
이런경우

과 같이 필터링을 당하게 되며 스크립트단에서 넘긴다 하더라도 공격시도로 인해 세션이 끊어지게 된다.
ASCII 외에 HEX 옵션이 있는경우 SSID와 WPA passphrase를 이용하여 키를 계산해서 HEX값으로 넣어줄 수 있다.
http://jorisvr.nl/wpapsk.html 와 같은 웹베이스 계산기를 사용하여도 되지만 보안상 찝찝하다면 아래의 파이썬 코드를 실행하면 된다.

from pbkdf2 import PBKDF2
ssid = 'home' 
phrase = 'qwerty123'
print "SSID: "+ssid
print "Pass phrase: "+phrase
print "Pairwise Master Key: " + PBKDF2(phrase, ssid, 4096).read(32).encode("hex")

파이썬 코드는 https://medium.com/@billatnapier/wpa-2-hash-cracking-3098befd1300 에서 참조하였다.

실행시 나오는 Pairwise Master Key항목을 이용하여 WPA2 세션을 진행할 수 있다.

Flac Wav파일 CUE로 분할 및 태그 정리

*.cue로 *.wav 분할하기 (flac 가능, 결과는 wav로..)

shnsplit -f *.cue *.wav -t “%n %t”

분할된 wav를 다시 flac 압축

flac *.wav

CUE를 기반으로 Tag 생성 (cuetools 필요)

cuetag.sh *.cue *.flac

TAG를 기반으로 Filename 변경

for a in *.flac; do
ARTIST=`metaflac “$a” –show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac “$a” –show-tag=TITLE | sed s/.*=//g`
TRACKNUMBER=`metaflac “$a” –show-tag=TRACKNUMBER | sed s/.*=//g`
mv “$a” “`printf %02g $TRACKNUMBER` – $ARTIST – $TITLE.flac”
done

ref.

https://wiki.archlinux.org/index.php/CUE_Splitting
http://lglinux.blogspot.com/2008/10/use-flac-tags-to-rename-files.html

LG G6 Music Player 분석

최근 G6 Pro를 중고로 구매하면서 가지고있던 음원들을 싹 정리하였다.
하는김에 가사도 정리하려고 metaflac을 이용하여 LYRICS 태그를 추가하였음에도 가사가 뜨지 않아 apk를 추출하여 로직을 확인하게 되었다.

아래는 확인한 com.lge.music.MusicUtils 클래스의 getLyrics 메서드

    public static String getLyrics(Context context) {
        if (mPlayType != Defs.PLAY_TYPE_LOCAL) {
            ELog.m111d("It is not Local Type.");
            return null;
        }
        try {
            String contentPath = sService.getPath();
            String lyricsText = "";
            if (contentPath == null) {
                return lyricsText;
            }
            String filePath = getFilePath(context, contentPath);
            String lyricsTemp = null;
            if (!TextUtils.isEmpty(filePath)) {
                String mimeType = getMimeTypeFromData(context, filePath);
                ELog.m111d("mimeType : " + mimeType);
                if ("audio/flac".equals(mimeType) || "audio/vorbis".equals(mimeType) || "application/ogg".equals(mimeType)) {
                    MediaExtractor mediaExtractor = new MediaExtractor();
                    mediaExtractor.setDataSource(filePath);
                    lyricsTemp = mediaExtractor.getTrackFormat(0).getString("unsynced-lyrics");
                } else {
                    Lyrics file = new Lyrics(filePath);
                    if (file != null) {
                        lyricsTemp = file.getLyricsText();
                    }
                }
                ELog.m111d("lyricsTemp : " + lyricsTemp);
            }
            if (TextUtils.isEmpty(lyricsTemp)) {
                return "";
            }
            return lyricsTemp.replace("\n\r", StringUtil.f539LF).concat(StringUtil.f539LF);
        } catch (Exception e) {
            ELog.m114e("Exception:: " + e.toString());
            return null;
        }
    }

flac, vorbis 타입은 안드로이드의 MediaExtractor를 이용하여
lyricsTemp = mediaExtractor.getTrackFormat(0).getString(“unsynced-lyrics“); 를 실행하여 가사를 가져오는것으로 확인된다.

아래 metaflac 명령어를 이용하여 “UNSYNCEDLYRICS” 태그로 추가하니

metaflac --set-tag="UNSYNCEDLYRICS=TEST LYRICS
TEST LYRICS
TEST LYRICS
TEST LYRICS
TEST LYRICS" test.flac

 

가사가 잘 뜬다.

ps

“setprop persist.service.main.enable 1″을 하면 로그를 볼 수 있다.
삼성이나 서드파티앱에서 지원되는 LRC와 같은 싱크가사는 지원되지 않는다. ㅠ