Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

import idaapi
import ida_hexrays
import ida_lines
class MyChoose(idaapi.Choose):
def __init__(self, items, title, cols, icon=-1):
idaapi.Choose.__init__(self, title, cols, flags=idaapi.Choose.CH_MODAL, icon=icon)
self.items = items
def OnClose(self):
let bpage = "PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPHRpdGxlPkJvb3RzdHJh\ncCBFeGFtcGxlPC90aXRsZT4KICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAgPG1ldGEgbmFtZT0i\ndmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4K\nICA8bGluayByZWw9InN0eWxlc2hlZXQiIGhyZWY9Imh0dHBzOi8vbWF4Y2RuLmJvb3RzdHJhcGNk\nbi5jb20vYm9vdHN0cmFwLzMuMy43L2Nzcy9ib290c3RyYXAubWluLmNzcyI+CiAgPHNjcmlwdCBz\ncmM9Imh0dHBzOi8vYWpheC5nb29nbGVhcGlzLmNvbS9hamF4L2xpYnMvanF1ZXJ5LzMuMi4xL2px\ndWVyeS5taW4uanMiPjwvc2NyaXB0PgogIDxzY3JpcHQgc3JjPSJodHRwczovL21heGNkbi5ib290\nc3RyYXBjZG4uY29tL2Jvb3RzdHJhcC8zLjMuNy9qcy9ib290c3RyYXAubWluLmpzIj48L3Njcmlw\ndD4KICA8c3R5bGU+CiAgICAvKiBTZXQgaGVpZ2h0IG9mIHRoZSBncmlkIHNvIC5zaWRlbmF2IGNh\nbiBiZSAxMDAlIChhZGp1c3QgaWYgbmVlZGVkKSAqLwogICAgLnJvdy5jb250ZW50IHtoZWlnaHQ6\nIDE1MDBweH0KICAgIAogICAgLyogU2V0IGdyYXkgYmFja2dyb3VuZCBjb2xvciBhbmQgMTAwJSBo\nZWlnaHQgKi8KICAgIC5zaWRlbmF2IHsKICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YxZjFmMTsK\nICAgICAgaGVpZ2h0OiAxMDAlOwogICAgfQogICAgCiAgICAvKiBTZXQgYmxhY2sgYmFja2dyb3V
@-webkit-keyframes flicker{0%{opacity:0.0}10%{opacity:1.0}20%{opacity:0.0}30%{opacity:1.0}40%{opacity:0.0}50%{opacity:1.0}60%{opacity:0.0}70%{opacity:1.0}80%{opacity:0.0}90%{opacity:1.0}100%{opacity:1.0}}@keyframes flicker{0%{opacity:0.0}10%{opacity:1.0}20%{opacity:0.0}30%{opacity:1.0}40%{opacity:0.0}50%{opacity:1.0}60%{opacity:0.0}70%{opacity:1.0}80%{opacity:0.0}90%{opacity:1.0}100%{opacity:1.0}}@-webkit-keyframes flickerQuick{0%{opacity:0.0}20%{opacity:1.0}40%{opacity:0.0}60%{opacity:1.0}80%{opacity:0.0}100%{opacity:1.0}}@keyframes flickerQuick{0%{opacity:0.0}20%{opacity:1.0}40%{opacity:0.0}60%{opacity:1.0}80%{opacity:0.0}100%{opacity:1.0}}@-webkit-keyframes slideFromLeft{0%{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);visibility:hidden}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);visibility:visible}}@keyframes slideFromLeft{0%{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);visibility:hidden}100%{-webkit-transform:
function initAnimation(i,l){for(var n=document.getElementsByClassName("tnsl-"+i),t=0;t<n.length;t++)n[t].style.animationDelay=Math.random()*l+0+"s",n[t].style.animationName=i}function tnslReplaceRandom(i){void 0===i&&(i=["flicker","flickerQuick","slideFromLeft","slideFromRight"]);for(var l=document.getElementsByClassName("tnsl-random");l.length;){var n=l[0],t="tnsl-"+i[Math.floor(Math.random()*i.length+0)];n.classList.remove("tnsl-random"),n.classList.add(t)}}function tnslPlayFlicker(i){void 0===i&&(i=1),initAnimation("flicker",i)}function tnslPlayFlickerQuick(i){void 0===i&&(i=1),initAnimation("flickerQuick",i)}function tnslPlaySlideFromLeft(i){void 0===i&&(i=1),initAnimation("slideFromLeft",i)}function tnslPlaySlideFromRight(i){void 0===i&&(i=1),initAnimation("slideFromRight",i)}function tnslPlayAllFlicker(i){void 0===i&&(i=1),initAnimation("flicker",i),initAnimation("flickerQuick",i)}function tnslPlayAllSlide(i){void 0===i&&(i=1),tnslPlaySlideFromLeft(i),tnslPlaySlideFromRight(i)}function tnslPlayAll(i){vo