fuzzer 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGQzMDJhMzE2ZjYzODhhYmIxNDA3N2EwNDE0Zjg5ZjIxYWYzYWJmZg==
4
+ NWU0NTE1YThhNDc3ZmI5ODc1MmNkODk1YWY4NjI4ZGI0MWZkYjA5Ng==
5
5
  data.tar.gz: !binary |-
6
- ZWZkN2I0ODYyY2Y5YjJlNTJlNWI2NGE2NDkyMGJmYmY4Yjg5ZjBkNQ==
6
+ NDBiYWQ3NDZhMGI1NmYxOTM4MDc1NGJmMWNmNDBjZDI0MGMyNzMxNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTE4MGQ4NTY5YzQxNjZhYjA4MGNlYTlhMTJiNmI0ZTAyY2Q1OWM4MzlhMzI0
10
- ZWU3OWJhZTEyNDM0ZTg2ODUzZDJjZGJiYzEzNzllYjhjZjA2ZTdkYWE4OGM3
11
- MDRjOWE2YjExMjVjZjFlYzNhM2VlNWEwNDAwYzI1MzlmMWNjN2E=
9
+ N2FlMGMxMjY0N2FmZTYyYTY5YzFiODM1ZWVlNjVjOThhYmI3MGFkOGI4YjM3
10
+ ODFkMTEzMDE5NTBjMzQ2N2YxOTA1NTI2MDc0Y2ZmZWQ5YThiOTc1N2E0OGIz
11
+ NDU4MTRmMDBkZmU4ZmEwMTJkZDU3MDVkMGY4NWU4N2UwNWZkNWE=
12
12
  data.tar.gz: !binary |-
13
- YzY0OWFkYzQ3MmExYmU3ZjczMDc4MzQ0ZWU0NzkzMjUyOTRlN2QxMjdlMDVi
14
- NDRmOGJmMDBjMTgzMGM0YjhlMDEyZjIyMjVhMGRjODU5MGMwNTVmNDdhZDA2
15
- MjRjNjE2MWM4MDcxMmZhM2FhZWE0NmY0MWNkMDEzOWY4ODAzMGM=
13
+ ZmFhN2M3NjVhNDgwZjAwZGE4OWU2OWY1NDljZDI2YWQyY2M5ZjBhNzk1NmQ3
14
+ NjViYzllY2NlZjYxYzg5MGIzOTlkMmJjZDY1OGRmNWZkNzgwNzFmM2IyNWFm
15
+ ZTc3MzVlMDFhNjIwNThjMDdkYjA3YzFlNzBkZTY1NzU0ZDlhNmY=
@@ -57,13 +57,21 @@ class CLI
57
57
 
58
58
  results = db.query("select * from content_items limit 1")
59
59
  cols = results.columns.select { |name| name != "id" && !name.end_with?("_fk") }
60
-
61
60
  db.execute("select * from content_items").each do |row|
62
61
  (5).times do
63
62
  db.execute("update content_items set #{cols.sample} = #{values.sample} where id = #{row[0]}")
64
63
  end
65
64
  end
66
65
  results.close
66
+
67
+ results = db.query("select * from content_item_details limit 1")
68
+ cols = results.columns.select { |name| name != "id" && !name.end_with?("_fk") }
69
+ db.execute("select * from content_item_details").each do |row|
70
+ (5).times do
71
+ db.execute("update content_item_details set #{cols.sample} = #{values.sample} where id = #{row[0]}")
72
+ end
73
+ end
74
+ results.close
67
75
  end
68
76
 
69
77
  # blobs, android_metadata can also be corrupted.
@@ -1,3 +1,3 @@
1
1
  module Fuzzer
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuzzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alx Dark