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
eac587b7
Commit
eac587b7
authored
5 years ago
by
Timmy Chan
Browse files
Options
Downloads
Patches
Plain Diff
Add qemu booting readme
parent
41680aef
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/qemu_background_boot.sh
+17
-0
17 additions, 0 deletions
exploitdb/ctfsetup/qemu/qemu_background_boot.sh
with
17 additions
and
0 deletions
exploitdb/ctfsetup/qemu/qemu_background_boot.sh
+
17
−
0
View file @
eac587b7
#!/bin/bash
# Boots a VM with a kernel and disk image in background.
#
# Assumes there is a kernel image called bzImage, and
# an OS disk image called disk.img.
#
# This script is not robust as it cannot check if a kernel or
# os image is properly compiled before running it on QEMU.
# It basically fires everything up and checks if the ssh port is
# open. Sometimes the ssh port may be open, but the kernel has crashed.
# This script does not do an additional check to cover that case.
#
# Kernel crash happen often on 2.6.x kernels.
#
# Example run:
# $ bash qemu_background_boot.sh -p <port>
set
-eu
while
[[
"$#"
>
0
]]
;
do case
$1
in
...
...
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