Skip to content

Commit

Permalink
disable PIE -- oops
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 19, 2024
1 parent d087bd0 commit c00e0f3
Show file tree
Hide file tree
Showing 135 changed files with 270 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ int challenge(int argc, char **argv, char **envp)
printf("You can make this variable be non-zero by overflowing the input buffer.\n");
printf("The \"win\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", win_variable, ((unsigned long) win_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ int challenge(int argc, char **argv, char **envp)
puts("will not get the flag. Be careful not to overwrite this variable.\n");
printf("The \"lose\" variable is stored at %p, %d bytes after the start of your input buffer.\n\n", lose_variable, ((unsigned long) lose_variable) - ((unsigned long) input));

puts("We have disabled the following standard memory corruption mitigations for this challenge:");
puts("- the binary is *not* position independent. This means that it will be");
puts("located at the same spot every time it is run, which means that by");
puts("analyzing the binary (using objdump or reading this output), you can");
puts("know the exact value that you need to overwrite the return address with.\n");

FIND_CANARY(cp_, cv_, bp_);

size = 4096;
Expand Down
Binary file not shown.
Loading

0 comments on commit c00e0f3

Please sign in to comment.