Skip to content

Commit

Permalink
Updated copyright notices and shebangs to make it clear that only Pyt…
Browse files Browse the repository at this point in the history
…hon 2 is support yet.
  • Loading branch information
joxeankoret committed Nov 27, 2018
1 parent 95fa203 commit 47e9940
Show file tree
Hide file tree
Showing 12 changed files with 175 additions and 17 deletions.
21 changes: 19 additions & 2 deletions exporters/SimpleEval.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""A simple C expressions evaluator.
"""
A simple C expressions evaluator.
Copyright (c) 2018, Joxean Koret
It was created as a safe eval() replacement that supports basic C expressions
like the following ones:
Expand All @@ -14,6 +16,21 @@
BUGS: It supports decimal, octal and hexadecimal numbers. However, only integers
and floats can be negatives.
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function
Expand Down
20 changes: 19 additions & 1 deletion exporters/base_support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""
Base support for exporting features from source codes.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import sys
Expand Down
21 changes: 20 additions & 1 deletion exporters/clang_exporter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""
CLang export for Pigaios.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import json
from threading import current_thread
Expand Down
6 changes: 3 additions & 3 deletions exporters/kfuzzy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7

"""
Fuzzy hashing algorithms
Copyright (C) 2009, Joxean Koret
Fuzzy hashing algorithms invented and implemented by Joxean Koret
Copyright (C) 2009-2018, Joxean Koret
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down
20 changes: 19 additions & 1 deletion exporters/simple_macro_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""
Simple C macro parser. Part of the Pigaios project.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import re
Expand Down
2 changes: 1 addition & 1 deletion exporters/terminalsize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion ml/pigaios_create_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

from __future__ import print_function

Expand Down
19 changes: 16 additions & 3 deletions ml/pigaios_ml.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
#!/usr/bin/python

from __future__ import print_function
#!/usr/bin/env python2.7

"""
A decision tree based system for calculating matches ratios.
Part of the Pigaios Project.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function

#-------------------------------------------------------------------------------
# Dear SciKit and NumPy developers: fuck you.
#
Expand Down
20 changes: 19 additions & 1 deletion sourceimp_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""
Core functions and classes for matching functions in source codes and binaries.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function

Expand Down
21 changes: 20 additions & 1 deletion sourceimp_ida.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/python
"""
IDA Python plugin for displaying matches between source codes and binaries as
well as for diffing functions and importing symbols and definitions. Part of the
Pigaios Project.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import re
import os
Expand Down
20 changes: 19 additions & 1 deletion sourcexp_ida.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/python
"""
IDA Python plugin for exporting features from IDA databases. Part of the Pigaios
Project.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function

Expand Down
20 changes: 19 additions & 1 deletion srcbindiff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/python
#!/usr/bin/env python2.7

"""
Pigaios, a tool for matching and diffing source codes directly against binaries.
Copyright (c) 2018, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function

Expand Down

0 comments on commit 47e9940

Please sign in to comment.