예제 #1
0
파일: login2.py 프로젝트: sgricci/digsby
def go_to_compose(un="digsby01", password="******", **k):
    xsnaclog.debug_s('go_to_compose %s', k)
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,
                   authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   siteState=SiteState({},
                                       ver='2',
                                       ac='WS',
                                       at='SNS',
                                       ld='webmail.aol.com',
                                       rp=quote(UrlQuery(
                                           'mail/composemessage.aspx?', **k),
                                                safe=''),
                                       uv='AIM',
                                       lc='en-us'))
    import wx
    xsnaclog.debug_s('go_to_compose out: %r', out)
    wx.LaunchDefaultBrowser(out)
예제 #2
0
파일: login2.py 프로젝트: AlexUlrich/digsby
def go_to_mail2(un="digsby01", password="******", remainder=''):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    out = UrlQuery(baseurl,authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out+remainder)
예제 #3
0
파일: login2.py 프로젝트: sgricci/digsby
def go_to_mail2(un="digsby01",
                password="******",
                remainder=''):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    out = UrlQuery(baseurl, authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out + remainder)
예제 #4
0
파일: login2.py 프로젝트: AlexUlrich/digsby
def go_to_mail(un="digsby01", password="******",
               baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?',
               sitedomain='sns.webmail.aol.com',
               OrigUrl='http://webmail.aol.com/Suite.aspx?'):
    OrigUrl = UrlQuery(OrigUrl, app='mail')
    t = X_SNAC(get_krbtgt2(un, password))
    mytlv = t.tokens[1]['main'];
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v));
    out = UrlQuery(baseurl,
                   sitedomain=sitedomain,
                   lang='en',
                   locale='us',
                   siteState='OrigUrl=' + OrigUrl,
                   mcState='doAAMAuth',
                   authToken=authTok);
    import wx
    wx.LaunchDefaultBrowser(out)
예제 #5
0
파일: login2.py 프로젝트: sgricci/digsby
def go_to_mail(un="digsby01",
               password="******",
               baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?',
               sitedomain='sns.webmail.aol.com',
               OrigUrl='http://webmail.aol.com/Suite.aspx?'):
    OrigUrl = UrlQuery(OrigUrl, app='mail')
    t = X_SNAC(get_krbtgt2(un, password))
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    out = UrlQuery(baseurl,
                   sitedomain=sitedomain,
                   lang='en',
                   locale='us',
                   siteState='OrigUrl=' + OrigUrl,
                   mcState='doAAMAuth',
                   authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out)
예제 #6
0
파일: login2.py 프로젝트: AlexUlrich/digsby
def go_to_msg(un="digsby01", password="******", msg='18282583'):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   lang='en',
                   locale='us',
                   siteState='ver:2|ac:WS|at:SNS|ld:webmail.aol.com|rp:' +
                   quote(UrlQuery('Lite/MsgRead.aspx?',
                         dict(folder='Inbox',uid='1.' +msg, seq='1', start='0')), safe='')
                   +'|uv:AIM|lc:en-us')
    import wx
    wx.LaunchDefaultBrowser(out)
예제 #7
0
파일: login2.py 프로젝트: AlexUlrich/digsby
def go_to_compose(un="digsby01", password="******", **k):
    xsnaclog.debug_s('go_to_compose %s', k)
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   siteState=SiteState({},ver='2',
                                       ac='WS',
                                       at='SNS',
                                       ld='webmail.aol.com',
                                       rp=quote(UrlQuery('mail/composemessage.aspx?', **k), safe=''),
                                       uv='AIM',
                                       lc='en-us'))
    import wx
    xsnaclog.debug_s('go_to_compose out: %r', out)
    wx.LaunchDefaultBrowser(out)
예제 #8
0
파일: login2.py 프로젝트: sgricci/digsby
def go_to_msg(un="digsby01",
              password="******",
              msg='18282583'):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(
        baseurl,
        authToken=authTok,
        mcState='doAAMAuth',
        sitedomain='sns.webmail.aol.com',
        lang='en',
        locale='us',
        siteState='ver:2|ac:WS|at:SNS|ld:webmail.aol.com|rp:' + quote(
            UrlQuery('Lite/MsgRead.aspx?',
                     dict(folder='Inbox', uid='1.' + msg, seq='1', start='0')),
            safe='') + '|uv:AIM|lc:en-us')
    import wx
    wx.LaunchDefaultBrowser(out)