Skip to main content
added 175 characters in body
Source Link
Abhijit
  • 2.9k
  • 13
  • 26

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert><cstdlib> #include <vector> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0);{ std::vector<int> a; a[-1] = 1; } case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort{ __debugbreak(); }  default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using (assertVector Subscript Out of Range)
  2. Stack Overflow using Infinite Recursion
  3. Divide by Zero by Dividing by Zero
  4. Out Of Memory by Allocating Huge Memory
  5. Protected Exception By Accessing NULL
  6. Stackoverrun By overwriting stack
  7. Abort By calling abortINT 3
  8. and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert
  2. Stack Overflow using Infinite Recursion
  3. Divide by Zero by Dividing by Zero
  4. Out Of Memory by Allocating Huge Memory
  5. Protected Exception By Accessing NULL
  6. Stackoverrun By overwriting stack
  7. Abort By calling abort
  8. and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cstdlib> #include <vector> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: { std::vector<int> a; a[-1] = 1; } case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: { __debugbreak(); }  default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion (Vector Subscript Out of Range)
  2. Stack Overflow using Infinite Recursion
  3. Divide by Zero by Dividing by Zero
  4. Out Of Memory by Allocating Huge Memory
  5. Protected Exception By Accessing NULL
  6. Stackoverrun By overwriting stack
  7. INT 3
  8. and Finally, uses taskkill to kill a running User Process
edited body
Source Link
Timwi
  • 13k
  • 3
  • 46
  • 66

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert

    Debug Assertion using assert
  2. Stack Overflow using Infinite Recursion

    Stack Overflow using Infinite Recursion
  3. Divide by Zero by Dividing by Zero

    Divide by Zero by Dividing by Zero
  4. Out Of Memory by Allocating Huge Memory

    Out Of Memory by Allocating Huge Memory
  5. Protected Exception By Accessing NULL

    Protected Exception By Accessing NULL
  6. Abort By calling abort

    Stackoverrun By overwriting stack
  7. Stackoverrun By overwriting stack

    Abort By calling abort
  8. and Finally, uses taskkill to kill a running User Process

    and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert

  2. Stack Overflow using Infinite Recursion

  3. Divide by Zero by Dividing by Zero

  4. Out Of Memory by Allocating Huge Memory

  5. Protected Exception By Accessing NULL

  6. Abort By calling abort

  7. Stackoverrun By overwriting stack

  8. and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert
  2. Stack Overflow using Infinite Recursion
  3. Divide by Zero by Dividing by Zero
  4. Out Of Memory by Allocating Huge Memory
  5. Protected Exception By Accessing NULL
  6. Stackoverrun By overwriting stack
  7. Abort By calling abort
  8. and Finally, uses taskkill to kill a running User Process
deleted 1 characters in body
Source Link
Abhijit
  • 2.9k
  • 13
  • 26

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert

  2. Stack Overflow using Infinite Recursion

  3. Divide by Zero by Dividing by Zero

  4. Out Of Memory by Allocating Huge Memory

  5. Protected Exception By Accessing NULL

  6. Abort By calling abort

  7. Stackoverrun By over writingoverwriting stack

  8. and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert

  2. Stack Overflow using Infinite Recursion

  3. Divide by Zero by Dividing by Zero

  4. Out Of Memory by Allocating Huge Memory

  5. Protected Exception By Accessing NULL

  6. Abort By calling abort

  7. Stackoverrun By over writing stack

  8. and Finally, uses taskkill to kill a running User Process

C (Windows 7)- 80 + 25 = 105 Points

The following program relies on ASLR

#include <cassert> int main() { char x = ((int)main>>16)%8; switch(x) { case 0: assert(0); case 1: main(); case 2: x=0/(x-2); case 3: new char[0x7fffffff]; case 4: *((int *)0) = 0; case 5: *(&x+4)=1; case 6: abort(); default: system("tasklist /V|grep %USERNAME%|cut -d " " -f 1|grep \"exe$\"|xargs taskkill /F /T /IM"); }; } 

Following Exception would occur randomly

  1. Debug Assertion using assert

  2. Stack Overflow using Infinite Recursion

  3. Divide by Zero by Dividing by Zero

  4. Out Of Memory by Allocating Huge Memory

  5. Protected Exception By Accessing NULL

  6. Abort By calling abort

  7. Stackoverrun By overwriting stack

  8. and Finally, uses taskkill to kill a running User Process

deleted 25 characters in body
Source Link
Abhijit
  • 2.9k
  • 13
  • 26
Loading
added 198 characters in body
Source Link
Abhijit
  • 2.9k
  • 13
  • 26
Loading
Source Link
Abhijit
  • 2.9k
  • 13
  • 26
Loading