Skip to content

Commit 7e87495

Browse files
committed
Initial commit
0 parents  commit 7e87495

13 files changed

+150
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.json]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Transpiled files for distribution
2+
dist
3+
4+
# Typings
5+
typings
6+
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
12+
# Dependency directories
13+
node_modules
14+
15+
# Optional npm cache directory
16+
.npm

LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Arthur Khashaev
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ![TaintFlow]
2+
3+
**TaintFlow**, a framework for JavaScript dynamic information flow analysis.
4+
5+
## About
6+
TaintFlow performs prior source code instrumentation which allows you to:
7+
8+
* Find DOM XSS vulnerabilities with taint analysis.
9+
* Improve your debugging experience since TaintFlow can observe almost any
10+
interesting data flow in code and intercept it.
11+
12+
## Copyright
13+
Copyright © 2016 [Arthur Khashaev]. See [license] for details.
14+
15+
[Arthur Khashaev]: https://khashaev.ru
16+
[TaintFlow]: https://khashaev.ru/static/taintflow.png
17+
[license]: LICENSE.txt

lerna.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"lerna": "2.0.0-beta.23",
3+
"version": "0.0.0"
4+
}

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "taintflow",
3+
"description": "TaintFlow, a framework for JavaScript dynamic information flow analysis.",
4+
"author": "Arthur Khashaev <[email protected]>",
5+
"license": "MIT",
6+
"private": true,
7+
"scripts": {
8+
"postinstall": "typings install && lerna bootstrap",
9+
"test": "mocha --require ts-node/register test/**/*.spec.ts",
10+
"lint": "tslint packages/*/src/**/*.ts test/**/*.ts"
11+
},
12+
"devDependencies": {
13+
"chai": "^3.5.0",
14+
"lerna": "2.0.0-beta.23",
15+
"mocha": "^2.5.3",
16+
"ts-node": "^0.9.3",
17+
"tslint": "^3.12.1",
18+
"tslint-config-ms-recommended": "^0.1.2",
19+
"tslint-microsoft-contrib": "^2.0.8",
20+
"typings": "^1.3.1"
21+
}
22+
}

packages/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Monorepo
2+
TaintFlow follows a monorepo approach, all officially maintained packages are
3+
in the same repository.
4+
5+
See [Lerna] for reasoning.
6+
7+
[Lerna]: https://github.com/lerna/lerna#about

test/intercept.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {should} from 'chai';
2+
should();
3+
4+
describe('true', () => {
5+
it('should be true', () => {
6+
true.should.be.true;
7+
});
8+
});

test/tslint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": [
3+
"../tslint.json"
4+
],
5+
"rules": {
6+
"no-unused-expression": false
7+
}
8+
}

tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"noImplicitAny": true
5+
}
6+
}

tslint.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"rulesDirectory": [
3+
"node_modules/tslint-microsoft-contrib"
4+
],
5+
"extends": [
6+
"tslint-config-ms-recommended"
7+
],
8+
"rules": {
9+
"missing-jsdoc": false,
10+
"no-relative-imports": false,
11+
"quotemark": [true, "single", "avoid-escape"],
12+
"max-line-length": [true, 80],
13+
"max-func-body-length": [true, 10, {"ignore-parameters-to-function-regex": "describe"}],
14+
"variable-name": [true, "ban-keywords", "check-format"]
15+
}
16+
}

typings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"globalDependencies": {
3+
"mocha": "registry:dt/mocha#2.2.5+20160619032855"
4+
},
5+
"dependencies": {
6+
"chai": "registry:npm/chai#3.5.0+20160415060238"
7+
}
8+
}

0 commit comments

Comments
 (0)