Parcourir la source

wigglewiggle
and a fufkfix

LH il y a 1 an
Parent
commit
3eb061e109

+ 5 - 4
QuickStuff/src/main/java/PV/UI.java

@@ -22,8 +22,8 @@ public class UI extends javax.swing.JFrame
     {
         initComponents();
         
-        String fp = "C:\\Users\\LH\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\wb5ap89r.default\\places-2207.sqlite";
-        String fp2="C:\\lmaa\\grepme.txt";
+        String fp = "C:\\Users\\LH\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\wb5ap89r.default\\places.sqlite";
+        String fp2="C:\\lmaa\\imgur-hunt.txt";
         DBWriter dbw = new DBWriter("", fp, "", "", DBWriter.DBTYPE_SQLite);
         //String[][] items = dbw.queryTable("SELECT url , id FROM moz_places");
         String[][] idmap = dbw.queryTable("SELECT place_id , visit_date from moz_historyvisits  ORDER BY visit_date");
@@ -48,8 +48,9 @@ public class UI extends javax.swing.JFrame
             ((DefaultTableModel)tblT.getModel()).setValueAt(date, i, 1);
             ((DefaultTableModel)tblT.getModel()).addRow(new String[]{""});
             i++;
-            
-            sb.append(date).append("|").append(datafield).append("\n");
+
+            //append(date).append("|").
+            sb.append(datafield).append("\n");
             }
             j++;
             if(j%1000==0)

+ 2 - 2
QuickStuff/src/main/java/QuickVerifyCrap/FlashTitsSucker.java

@@ -11,8 +11,8 @@ import java.nio.charset.StandardCharsets;
 
 public class FlashTitsSucker {
     public static void main(String[] args) {
-        try (RandomAccessFile file = new RandomAccessFile("C:\\lmaa\\085-flash\\flashhaxx-merged.bin","r")) {
-            File out = new File("C:\\lmaa\\085-flash\\out-rerun");
+        try (RandomAccessFile file = new RandomAccessFile("D:\\LOA\\000023\\filteredMerged-patched.bin","r")) {
+            File out = new File("D:\\LOA\\000023\\out-rerun");
             out.mkdirs();
             //file.seek(0x6b);
             //guessed from file reading

+ 2 - 2
QuickStuff/src/main/java/QuickVerifyCrap/STreamStripper.java

@@ -8,7 +8,7 @@ public class STreamStripper {
     public static void main(String[] args) throws Exception {
         PrintWriter fw = new PrintWriter("C:\\lmaa\\ugly.sh");
         fw.println("#!/bin/bash");
-        for(int i=40;i<57;i++)
+        for(int i=40;i<300;i++)
         {
             String section = String.format("%05d", i);
             fw.println("mkdir -p " +section);
@@ -17,7 +17,7 @@ public class STreamStripper {
             {
                 String file = String.format("%05d", j);
 
-                fw.println("wget -nc https://swrevent03hls.akamaized.net/hls/live/2016768-b/event03/20231019T082004/master-720p-3628/"+section+"/master-720p-3628_"+file+".ts");
+                fw.println("wget -nc https://swrevent03hls.akamaized.net/hls/live/2016768-b/event03/20231019T082004/master-720p-3628/"+section+"/master-720p-3628_"+file+".ts || exit");
             }
             fw.println("cd ..");
         }

+ 56 - 0
QuickStuff/src/main/java/QuickVerifyCrap/Unwiggler.java

@@ -0,0 +1,56 @@
+package QuickVerifyCrap;
+
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.RandomAccessFile;
+
+public class Unwiggler {
+    public static void main(String[] args) throws IOException {
+        RandomAccessFile r = new RandomAccessFile("D:\\LOA\\000024\\emumm\\cgc.so","r");
+        RandomAccessFile rw = new RandomAccessFile("D:\\LOA\\000024\\emumm\\cgc.so.boobs","rw");
+        byte[] key1 = new byte[]{0x0a,0x43,(byte)0xc2,0x00};
+        byte[] key2 = new byte[]{
+                (byte) 0xbd,0x5e, (byte) 0xb0,0x17,
+                (byte) 0xcf, (byte) 0x9b,0x63,0x00,
+};
+        byte[] key3 = new byte[]{
+                (byte) 0xe7, (byte) 0xe2,0x77, (byte) 0x90,
+                (byte) 0xa5,0x22, (byte) 0xcc, (byte) 0xd0,
+                0x24, (byte) 0xc7, (byte) 0xa6,0x14,
+                (byte) 0x85,0x00,};
+        byte[] key4 = new byte[]{
+                0x11,0x37,0x74,0x38,
+                (byte) 0xca, (byte) 0xec,0x25, (byte) 0xf6,
+                (byte) 0xd3, (byte) 0x98,0x47, (byte) 0x9b,
+                0x55,0x67, (byte) 0xd1,0x29,
+                (byte) 0x91,0x00,};//
+        byte[] key5 = new byte[]{
+                0x70,(byte)0xA3,(byte)0x81,(byte)0xC5,
+                (byte)0xF4,0x07,(byte)0xCB,0x32,
+                0x73,(byte)0xc0,0x55,0x12,
+                (byte)0x87,(byte)0xb5,0x44,(byte)0x8c,
+                0x72,0x08,(byte)0xf3,0x00,
+        };
+        long filelen = r.length();
+        long lim = filelen-0x10;
+        byte[] filer = new byte[(int) filelen];
+        byte[] filew = new byte[(int) filelen];
+        r.read(filer);
+        for(int i=0;i<lim;i++)
+        {
+            byte wiggledByte =
+                    (byte) (key1[i % 3] ^
+                            filer[i+4] ^
+                            key5[i % 0x13] ^
+                            key4[i % 0x11] ^
+                            key3[i % 0xd] ^
+                            key2[i % 7]);
+            int weirdTrigger = i - (i / 5);
+            if ((weirdTrigger & 1) != 0) {
+                wiggledByte = (byte) (((wiggledByte & 0x1f) << 3) | (wiggledByte >> 5)&0b00000111);
+            }
+            filew[i] = wiggledByte;
+        }
+        rw.write(filew);
+    }
+}