about summary refs log tree commit diff
path: root/python_mutators/common.py
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-03 13:11:10 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-03 13:11:10 +0100
commit2fe7889912c9bb340f302a037585b7b1836ac94f (patch)
tree5c3e4e5829f45dce46794ebc2681732738d689fe /python_mutators/common.py
parente2eedefc65bec1a04605f117a11ca8bdf9d80323 (diff)
downloadafl++-2fe7889912c9bb340f302a037585b7b1836ac94f.tar.gz
move custom and pythoon mutators examples into examples/
Diffstat (limited to 'python_mutators/common.py')
-rw-r--r--python_mutators/common.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/python_mutators/common.py b/python_mutators/common.py
deleted file mode 100644
index 28b8ee80..00000000
--- a/python_mutators/common.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-# encoding: utf-8
-'''
-Module containing functions shared between multiple AFL modules
-
-@author:     Christian Holler (:decoder)
-
-@license:
-
-This Source Code Form is subject to the terms of the Mozilla Public
-License, v. 2.0. If a copy of the MPL was not distributed with this
-file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-@contact:    choller@mozilla.com
-'''
-
-from __future__ import print_function
-import random
-import os
-import re
-
-def randel(l):
-    if not l:
-        return None
-    return l[random.randint(0,len(l)-1)]
-
-def randel_pop(l):
-    if not l:
-        return None
-    return l.pop(random.randint(0,len(l)-1))
-
-def write_exc_example(data, exc):
-    exc_name = re.sub(r'[^a-zA-Z0-9]', '_', repr(exc))
-    
-    if not os.path.exists(exc_name):
-        with open(exc_name, 'w') as f:
-            f.write(data)