This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def AsByteStr(s, appendZero=True): | |
| return (" ".join("%02X" % x for x in map(ord, s))) + (" 00" if appendZero else "") | |
| def GetClientBuild(): | |
| ref = FindBinary(0, SEARCH_DOWN, AsByteStr("<Version>", False)); | |
| if ref == BADADDR: | |
| raise BaseException("Can't find offset for "+name); | |
| verStr = GetString(ref, -1, ASCSTR_C); | |
| result = re.findall("(\d{5})", verStr); | |
| print(verStr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def AsByteStr(s, appendZero=True): | |
| return (" ".join("%02X" % x for x in map(ord, s))) + (" 00" if appendZero else "") | |
| def GetClientBuild(): | |
| ref = FindBinary(0, SEARCH_DOWN, AsByteStr("<Version>", False)); | |
| if ref == BADADDR: | |
| raise BaseException("Can't find offset for "+name); | |
| verStr = GetString(ref, -1, ASCSTR_C); | |
| result = re.findall("(\d{5})", verStr); | |
| print(verStr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| namespace CallFsEB | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [DISASM] | |
| 000000 //Instruction | |
| aaaaaa //Directive | |
| df69d2 //Macro name | |
| b15cb1 //Register name | |
| 7f888c //Other keywords | |
| 005500 //Dummy data name | |
| a4cfcf //Dummy code name | |
| b9ebeb //Dummy unexplored name | |
| 1c0adf //Hidden name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-WindowsKey { | |
| param ($targets = ".") | |
| $hklm = 2147483650 | |
| $regPath = "Software\Microsoft\Windows NT\CurrentVersion" | |
| $regValue = "DigitalProductId" | |
| Foreach ($target in $targets) { | |
| $productKey = $null | |
| $win32os = $null | |
| $wmi = [WMIClass]"\\$target\root\default:stdRegProv" | |
| $data = $wmi.GetBinaryValue($hklm,$regPath,$regValue) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- drop TEMPORARY TABLE IF EXISTS tmp; | |
| CREATE TEMPORARY TABLE | |
| IF NOT EXISTS tmp AS ( | |
| SELECT | |
| t.entry, | |
| t.`name`, | |
| t.castBarCaption, | |
| l.name_loc8, | |
| l.castbarcaption_loc8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Text; | |
| using AgileObjects.ReadableExpressions; | |
| using System.IO; | |
| using System.Globalization; | |
| namespace ConsoleApp3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unit ASN1; | |
| interface | |
| uses System.SysUtils, System.Generics.Collections, RegularExpressions, Classes, Math; | |
| TYPE | |
| {$REGION 'TAsn1Class'} | |
| TAsn1Class = ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --atSequence (2 elem) | |
| ---atObjectIdentifier 1.2.840.113549.1.7.2 | |
| ---atEoc | |
| ----atSequence (2 elem) | |
| -----atInteger | |
| -----atSet (2 elem) | |
| ------atSequence (2 elem) | |
| -------atObjectIdentifier 1.2.643.2.2.9 | |
| -------atNull | |
| ------atSequence (3 elem) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| procedure TAsnReader.SaveContentToStream(stream: TStream); | |
| var breader : TBinaryReader; | |
| magik, blockType, blockLength : integer; | |
| isEnd : boolean; | |
| buffer : TBytes; | |
| begin | |
| m_stream.Seek(0, soBeginning); | |
| breader := TBinaryReader.Create(m_stream); | |
| magik := breader.ReadUInt16(); | |
| case magik of |