Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTF Search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTF Search Team
CTF Search
Commits
4ae67658
Commit
4ae67658
authored
4 years ago
by
Timmy Chan
Browse files
Options
Downloads
Patches
Plain Diff
Fix no kernel version detected
parent
59b8bd1e
Branches
Branches containing commit
No related tags found
1 merge request
!5
Feat/cve linux kernel
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exploitdb/ctfsetup/qemu_setup.py
+5
-1
5 additions, 1 deletion
exploitdb/ctfsetup/qemu_setup.py
with
5 additions
and
1 deletion
exploitdb/ctfsetup/qemu_setup.py
+
5
−
1
View file @
4ae67658
...
...
@@ -13,7 +13,11 @@ def qemu_vm_setup(vuln, app_path, vuln_type):
kernel_version
=
None
version_list
=
regex_find_all_version_strings
(
description
)
if
len
(
version_list
)
==
1
:
if
len
(
version_list
)
==
0
:
print
(
"
There are no version numbers explicitly mentioned in the vulnerability description.
"
)
print
(
"
Retry using EDB id instead or build manually
"
)
elif
len
(
version_list
)
==
1
:
# If only one version number found, use it as kernel version number.
valid_version_number
=
get_kernel_release_number
(
version_list
[
0
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment