public static SC_DATA ReadShellcode(String b64_sc) { SC_DATA scd = new SC_DATA(); try { scd.bScData = System.Convert.FromBase64String(b64_sc); scd.iSize = (uint)scd.bScData.Length; } catch { } return(scd); }
public static SC_DATA ReadShellcode(String Path) { SC_DATA scd = new SC_DATA(); try { scd.bScData = File.ReadAllBytes(Path); scd.iSize = (uint)scd.bScData.Length; } catch { } return(scd); }
public static SC_DATA ReadShellcode() { SC_DATA scd = new SC_DATA(); try { string scode = ExtractResource("UrbanBishop.Resources.txt"); byte[] blob = Convert.FromBase64String(scode); //byte[] bScData = Decompress(blob); scd.bScData = Decompress(blob); scd.iSize = (uint)scd.bScData.Length; } catch { } return(scd); }
public static SC_DATA ReadShellcode() { SC_DATA scd = new SC_DATA(); try { //scd.bScData = File.ReadAllBytes(Path); //scd.iSize = (uint)scd.bScData.Length; string scode = ExtractResource("RuralBishop.pawn.txt"); byte[] blob = Convert.FromBase64String(scode); //byte[] bScData = Decompress(blob); scd.bScData = Decompress(blob); scd.iSize = (uint)scd.bScData.Length; } catch { } return(scd); }