Skip to content

sealldeveloper/pywtf

Repository files navigation

PyWTF a-z()+

PyWTF is an esoteric and educational programming style based on JSFuck and inspired by this tweet. It uses only built-in functions to execute code. It currently represents all characters below 0x7f in 48 characters or less in Python 3.9+.

It does not depend on a browser, so you can even run it with Python with pywtf.py.

Demo: https://pywtf.seall.dev

By @sealldev and friends.

Example

The following source will do an print(1):

exec(chr(ord(max(oct(int())))+(not()))+max(str(range(
int())))+chr(sum(range(len(repr(str(set))))))+chr(max(
range(ord(max(oct(int()))))))+max(str(set))+min(str(set()))+
str(+(not()))+max(str(tuple())))

Basics

True        =>  not()
False       =>  ()in()
None        =>  str(set().add(()))
0           =>  int()
1           =>  +(not())
2           =>  (not())+(not())
10          =>  int(str(+(not()))+str(int()))
a           =>  chr(max(range(ord(max(bin(int()))))))
<num>+1     =>  <num>+(not())
<num>-1      =>  max(range(<num>))

See the full list at a later date...

How it Works

Todo

Further Readings

Todo

About

Obfuscate any Python with only built-in functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •