n/domainsu/whiskey · 3 个月前
注册 登录
n/domains · 3 个月前 · 1124 次浏览
u/whiskey黄金

freenom用土办法又续了10来年,看看能撑几天

6
40
登录后参与讨论。

40 条回复

排序
  1. huxubo 钻石 3 个月前
    2
  2. lxdd 黄金 不离不弃 3 个月前

    大佬是啥方法可否告知?我那个好像还有几天就要到期了。

    1
  3. whiskey 黄金 楼主 3 YEARS 3 个月前
    (async()=>{let e={p:"初始化",m:{},d:[],r:[],ok:[],bad:[]},t="querySelectorAll",r=/\b([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.(?:tk|ml|ga|cf|gq))\b/i,a=e=>(new DOMParser).parseFromString(e,"text/html"),o=e=>(((e=>String(e||"").replace(/<script\b[\s\S]*?<\/script>/gi," ").replace(/<style\b[\s\S]*?<\/style>/gi," ").replace(/<[^>]+>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/\s+/g," "))(e).match(r)||[])[1]||"").toLowerCase(),n=e=>(String(e||"").replace(/&amp;/g,"&").match(/(?:domaindetails[^"'<>]*[?&]id=|renewalperiod\[|[?&](?:id|domainid|renewalid)=)(\d+)/i)||[])[1]||"",i=()=>{let t=document.getElementById("_fr");t||(t=document.body.appendChild(document.createElement("pre")),t.id="_fr",t.style="position:fixed;right:12px;bottom:12px;z-index:2147483647;max-width:520px;max-height:70vh;overflow:auto;background:#111827;color:#eee;padding:12px;border-radius:10px;font:13px/1.5 monospace;white-space:pre-wrap"),t.textContent=["Freenom续期","状态:"+e.p,"域名:"+e.d.length+" ID:"+Object.keys(e.m).length+" 成功:"+e.ok.length+" 失败:"+e.bad.length,"",...e.r.map(e=>(1===e.o?"✓":0===e.o?"✗":"…")+" "+e.d+" "+(e.i?"("+e.i+")":"(无id)")+(e.e?" - "+e.e:""))].join("\n")},l=t=>(e.p=t,i(),console.log("[Freenom]",t)),d=async e=>{let t=await fetch(e,{credentials:"include",cache:"no-store"}),r=await t.text();if(!t.ok)throw Error(e+" HTTP "+t.status);return r};try{if("my.freenom.com"!=location.hostname)throw Error("请在 my.freenom.com 执行");if(i(),l("读取ID"),[...a(await d("/clientarea.php?action=domains"))[t]('a[href*="domaindetails"],a[href*="domainid"],a[href*="id="]')].map(t=>{let r=t.getAttribute("href")||"",a=n(r)||n(t.outerHTML),i=t.closest("tr")||t.closest("li")||t.parentElement||t,l=o(i.innerHTML)||o(i.textContent)||o(t.textContent)||o(r);l&&a&&(e.m[l]=a)}),!Object.keys(e.m).length)throw Error("没有找到domain id");l("读取续期页");let r=await d("/domains.php?a=renewals"),m=a(r),c=(m.querySelector("[name=token]")||{}).value||(r.match(/name=["']token["'][^>]*value=["']([^"']+)/i)||r.match(/value=["']([^"']+)["'][^>]*name=["']token/i)||[])[1]||"";if(e.d=[...new Set([...m[t]("tr")].map(e=>o((e.querySelector("td")||e).textContent)).filter(Boolean))],!c)throw Error("没有找到token");if(!e.d.length)throw Error("没有找到域名");e.r=e.d.map(t=>({d:t,i:e.m[t]})),l("并行续期"),await Promise.all(e.r.map(async t=>{try{if(!t.i)throw Error("无id");let e=new URLSearchParams({token:c,renewalid:t.i,paymentmethod:"credit"});e.set("renewalperiod["+t.i+"]","12M");let r=await fetch("/domains.php?submitrenewals=true",{method:"POST",credentials:"include",headers:{"content-type":"application/x-www-form-urlencoded"},body:e}),a=await r.text();t.o=r.ok&&/Order Confirmation/i.test(a)?1:0,t.o||(t.e="未确认")}catch(e){t.o=0,t.e=e.message}e.ok=e.r.filter(e=>1===e.o),e.bad=e.r.filter(e=>0===e.o),i()})),l("完成"),window.__fr=e,console.table(e.r)}catch(t){e.p="失败:"+t.message,i(),console.error(t)}})();
    
    
    3
  4. yellowbins 黄金 3 YEARS 3 个月前

    终于续上了

    1
  5. gdrgr 白银 3 个月前

    大佬详细怎么使用可以说一下吗

    0
  6. whiskey 黄金 楼主 3 YEARS 3 个月前

    f12控制台直接粘贴

    0
  7. 继续这个对话 →
  8. clashaka 白银 3 个月前

    freenom 还有免费域名吗

    1
  9. whiskey 黄金 楼主 3 YEARS 3 个月前

    以前有就有

    0
  10. jingzhang 钻石 3 个月前

    freenom还活着啊

    1
  11. whiskey 黄金 楼主 3 YEARS 3 个月前

    暂时还活着

    0
  12. lezi-fun 钻石 水王 3 个月前

    还能注册吗(

    0
  13. uioecfvz 黄金 2 YEARS 3 个月前

    什么土方法 :xhj27:

    1
  14. 10_0_16_12 钻石 3 个月前

    代码先收了,回头部署一下。

    1
  15. xiaozx 💤 黄金 3 YEARS 3 个月前

    不用部署,直接登陆freenom,F12执行脚本。

    0
  16. 10_0_16_12 钻石 3 个月前

    有点麻烦,如果是那种能部署的一键操作的就好了

    0
  17. whiskey 黄金 楼主 3 YEARS 3 个月前

    让ai给你加个循环

    0
  18. Ax789959 黄金 不离不弃 3 个月前

    啥土办法啊?

    0
  19. lmogaxmhiqrp 铂金 3 YEARS 3 个月前

    可惜我没有这种域名。

    0
  20. hyt 黄金 3 个月前

    域名帐户都登录不进去

    0
  21. whiskey 黄金 楼主 3 YEARS 3 个月前

    要重置一次密码

    1
  22. xiaozx 💤 黄金 3 YEARS 3 个月前

    也不知道能玩多久。续到了35年了,反正是freenom说什么到期就到期!

    0
  23. whiskey 黄金 楼主 3 YEARS 3 个月前

    我直接续到2100年 :ac01:

    1
  24. TANGFAN 黄金 3 YEARS 3 个月前

    我的freenom账号登录不上了😭

    0
  25. Frank000000000 黄金 3 YEARS 3 个月前

    呦吼,你们真能折腾。Freenom自己不是马上就到期了么?

    0
  26. pmg 黄金 3 YEARS 3 个月前

    会不会判定为非法操作,把号封了

    0
  27. yhixswr 白银 3 个月前

    不用脚本,域名立马过期,跟封号有啥区别?

    0
  28. pmg 黄金 3 YEARS 3 个月前

    有道理

    0
  29. Aztaer 钻石 不离不弃 3 个月前

    freenom 遗民,至今存活的,牛逼

    0
  30. lw1133 黄金 3 个月前

    多谢佬,续上再说

    0
  31. awinds 黄金 不离不弃 3 个月前

    失效了吗?为什么没有改日期?

    0
  32. jhon25 黄金 3 个月前

    这域名也就自己玩玩,随时可能被回收的。

    0
  33. heyuxuanyyds1 钻石 3 YEARS 3 个月前

    现在还能续?要交钱了把

    0
  34. wbbwb 黄金 圣贤 3 个月前

    具体该怎么操作才能给freenom域名续期

    0
  35. mikujiang 白银 3 个月前

    这个是啥,这么强!?

    0
  36. xidada 白银 2 个月前

    大佬你的还好吗,之前全续到40年了,现在就剩一个了,其他全过期了。

    0
  37. gene_motley 铂金 1 个月前

    都一样的,我的之前续期到2033年,也在7月31日全部过期了,但是9月26日才给我发邮件无法使用

    0
  38. whiskey 黄金 楼主 3 YEARS 1 个月前

    你还能剩一个 我的全没了 🫪

    0
  39. awinds 黄金 不离不弃 1 个月前

    这种假续费后面被修复了,然后说好了给续10年的也失效了,算了,放弃tk了

    0