💘 Write any Python with 9 Characters: e,x,c,h,r,(,+,1,)

Related tags

MiscellaneousPyFuck
Overview

💘 PyFuck exchr(+1)

PyFuck is a strange playful code.
It uses only nine different characters to write Python3 code.

Inspired by aemkei/jsfuck

Example

The following source will do an __import__("os").system("ls"):

exec(chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)+chr(111+1)+chr(111)+chr(111+1+1+1)+chr(111+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1)+chr(111)+chr(111+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+1+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1)+chr(111+1+1+1+1)+chr(111+1+1+1+1+1+1+1+1+1+1)+chr(111+1+1+1+1)+chr(111+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1)+chr(111+1+1+1+1)+chr(11+11+11+1)+chr(11+11+11+1+1+1+1+1+1+1+1))

Basics

chr(48) => chr(11+11+11+11+1+1+1+1) "1" => chr(49) => chr(11+11+11+11+1+1+1+1+1) "2" => chr(50) => chr(11+11+11+11+1+1+1+1+1+1) "A" => chr(65) => chr(11+11+11+11+11+1+1+1+1+1+1+1+1+1+1) "B" => chr(66) => chr(11+11+11+11+11+11) "C" => chr(67) => chr(11+11+11+11+11+11+1) "a" => chr(97) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1) "b" => chr(98) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1) "c" => chr(99) => chr(11+11+11+11+11+11+11+11+11) "+" => chr(43) => chr(11+11+11+1+1+1+1+1+1+1+1+1+1) "-" => chr(45) => chr(11+11+11+11+1) "(" => chr(40) => chr(11+11+11+1+1+1+1+1+1+1) ")" => chr(41) => chr(11+11+11+1+1+1+1+1+1+1+1) "[" => chr(91) => chr(11+11+11+11+11+11+11+11+1+1+1) "]" => chr(93) => chr(11+11+11+11+11+11+11+11+1+1+1+1+1) etc.">
"0"  =>  chr(48)  =>  chr(11+11+11+11+1+1+1+1)
"1"  =>  chr(49)  =>  chr(11+11+11+11+1+1+1+1+1)
"2"  =>  chr(50)  =>  chr(11+11+11+11+1+1+1+1+1+1)
"A"  =>  chr(65)  =>  chr(11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)
"B"  =>  chr(66)  =>  chr(11+11+11+11+11+11)
"C"  =>  chr(67)  =>  chr(11+11+11+11+11+11+1)
"a"  =>  chr(97)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1)
"b"  =>  chr(98)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1+1)
"c"  =>  chr(99)  =>  chr(11+11+11+11+11+11+11+11+11)
"+"  =>  chr(43)  =>  chr(11+11+11+1+1+1+1+1+1+1+1+1+1)
"-"  =>  chr(45)  =>  chr(11+11+11+11+1)
"("  =>  chr(40)  =>  chr(11+11+11+1+1+1+1+1+1+1)
")"  =>  chr(41)  =>  chr(11+11+11+1+1+1+1+1+1+1+1)
"["  =>  chr(91)  =>  chr(11+11+11+11+11+11+11+11+1+1+1)
"]"  =>  chr(93)  =>  chr(11+11+11+11+11+11+11+11+1+1+1+1+1)
etc.

Execute print(1)

chr(111+1) "r" => chr(111+1+1+1) "i" => chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1) "n" => chr(11+11+11+11+11+11+11+11+11+11) "t" => chr(111+1+1+1+1+1) "(" => chr(11+11+11+1+1+1+1+1+1+1) "1" => chr(11+11+11+11+1+1+1+1+1) ")" => chr(11+11+11+1+1+1+1+1+1+1+1) "print(1)" => chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1) exec("print(1)") => exec(chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1))">
"p" => chr(111+1)
"r" => chr(111+1+1+1)
"i" => chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)
"n" => chr(11+11+11+11+11+11+11+11+11+11)
"t" => chr(111+1+1+1+1+1)
"(" => chr(11+11+11+1+1+1+1+1+1+1)
"1" => chr(11+11+11+11+1+1+1+1+1)
")" => chr(11+11+11+1+1+1+1+1+1+1+1)
"print(1)" => chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1)
exec("print(1)") => exec(chr(111+1)+chr(111+1+1+1)+chr(11+11+11+11+11+11+11+11+11+1+1+1+1+1+1)+chr(11+11+11+11+11+11+11+11+11+11)+chr(111+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1)+chr(11+11+11+11+1+1+1+1+1)+chr(11+11+11+1+1+1+1+1+1+1+1))

Usage

test.py $ python pyfuck.py ____ _____ _ | _ \ _ _| ___| _ ___| | __ | |_) | | | | |_ | | | |/ __| |/ / | __/| |_| | _|| |_| | (__| < |_| \__, |_| \__,_|\___|_|\_\ |___/ by Satoki FileName: test.py -> output.py $ python output.py Satoki">
$ echo "print('Satoki')" > test.py
$ python pyfuck.py
 ____        _____           _
|  _ \ _   _|  ___|   _  ___| | __
| |_) | | | | |_ | | | |/ __| |/ /
|  __/| |_| |  _|| |_| | (__|   <
|_|    \__, |_|   \__,_|\___|_|\_\
       |___/
                                    by Satoki

FileName: test.py
-> output.py
$ python output.py
Satoki
Owner
Satoki
Satoki
Forward RSS feeds to your email address, community maintained

Getting Started With rss2email We highly recommend that you watch the rss2email project on GitHub so you can keep up to date with the latest version,

248 Dec 28, 2022
Download and archive entire usenet newsgroups over NNTP.

Usenet Archiving Tool This code is for archiving Usenet discussions, not downloading files. Newsgroup posts are saved under the authors name and email

Corey White 2 Dec 23, 2021
🤖🤖 Jarvis is an virtual assistant which can some tasks easy for you like surfing on web opening an app and much more... 🤖🤖

Jarvis 🤖 🤖 Jarvis is an virtual assistant which can some tasks easy for you like surfing on web opening an app and much more... 🤖 🤖 Developer : su

1 Nov 08, 2021
Performance monitoring and testing of OpenStack

Browbeat Browbeat is a performance tuning and analysis tool for OpenStack. Browbeat is free, Open Source software. Analyze and tune your Cloud for opt

cloud-bulldozer 83 Dec 14, 2022
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.

pipupgrade The missing command for pip Table of Contents Features Quick Start Usage Basic Usage Docker Environment Variables FAQ License Features Upda

Achilles Rasquinha 529 Dec 31, 2022
A small C compiler written in Python for learning purposes

A small C compiler written in Python. Generates x64 Intel-format assembly, which is then assembled and linked by nasm and ld.

Scattered Thoughts 3 Oct 22, 2021
Collections of python projects

nppy, mostly contains projects written in Python. Some projects are very simple while some are a bit lenghty and difficult(for beginners) Requirements

ghanteyyy 75 Dec 20, 2022
Biohacking con Python honeycon21

biohacking-honeycon21 This repository includes the slides of the public presentation 'Biohacking con Python' in the Hack&Beers of HoneyCON21 (PPTX and

3 Nov 13, 2021
Цифрова збрoя проти xуйлoвської пропаганди.

Паляниця Цифрова зброя проти xуйлoвської пропаганди. Щоб негайно почати шкварити рашистські сайти – мерщій у швидкий старт! ⚡️ А коли ворожі сервери в

8 Mar 22, 2022
Zapiski za ure o C++-u

cpp-notes Zapiski o C++-u. Objavljena verzija je na https://e6.ijs.si/~jslak/c++/ Generating the notes The setup assumes you are working in a Linux en

Jure Slak 1 Jan 05, 2022
Anki Cards for the HSK vocabulary Chinese-German

Anki-HanyuShuipingKaoshi Anki Cards for the HSK vocabulary Chinese-German Das Deck baut auf folgenden Quellen auf: China Endecken Wortschatz von wohok

1 Jan 07, 2022
Wisdom Tree is a concentration app i am working on.

Wisdom Tree Wisdom Tree is a tui concentration app I am working on. Inspired by the wisdom tree in Plants vs. Zombies which gives in-game tips when it

NO ONE 241 Jan 01, 2023
Test reproducibility of leiden/umap on different systems

Demonstrate that UMAP and Leiden analysis is not reproducible between different cpu architectures.

Gregor Sturm 2 Oct 16, 2021
combs is a package used to generate all possible combinations of a given length k on a given set.

The package combs is a package used to generate all possible combinations of a given length k on a given set. The set is given as a list, and k must b

1 Dec 24, 2021
A utility control surface for Ableton Live that makes the initialization of a Mixdown quick

Automate Mixdown initialization A script that transfers all the VSTs on your MIDI tracks to a new track so you can freeze your MIDI tracks and then co

Aarnav 0 Feb 23, 2022
A Google sheet which keeps track of the locations that want to visit and a price cutoff

FlightDeals Here's how the program works. First, I have a Google sheet which keeps track of the locations that I want to visit and a price cutoff. It

Lynne Munini 5 Nov 21, 2022
Architecture example simulator

SCADA architecture Example of a SCADA-like console application, used to serve as a minimal example of a standard architecture of an IIoT system. Insta

1 Nov 06, 2021
Easy way to build a SaaS application using Python and Dash

EasySaaS This project will be attempt to make a great starting point for your next big business as easy and efficent as possible. This project will cr

xianhu 3 Nov 17, 2022
Learning with Peter Norvig's lis.py interpreter

Learning with lis.py This repository contains variations of Peter Norvig's lis.py interpreter for a subset of Scheme, described in (How to Write a (Li

Fluent Python 170 Dec 15, 2022
Compile Binary Ninja's HLIL IR to LLVM, for purposes of compiling it back to a binary again.

Compiles BinaryNinja's HLIL to LLVM Approach Sweep binary for global variables, create them Sweep binary for (used?) external functions, declare those

Kyle Martin 31 Nov 10, 2022