Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 577989 Details for
Bug 813254
RFE: have a possibility to set percentage of changed bytes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
option-for-percentage.patch (text/plain), 1.39 KB, created by
Petr Sklenar
on 2012-04-17 10:35:24 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Petr Sklenar
Created:
2012-04-17 10:35:24 UTC
Size:
1.39 KB
patch
obsolete
>--- a/proxyfuzz.py.txt 2012-01-02 13:24:47.000000000 +0100 >+++ b/proxyfuzz.py.txt 2012-04-17 12:20:38.272120027 +0200 >@@ -124,7 +124,7 @@ > > def bitflipping(data): > l = len(data) >- n = int(l*7/100) # 7% of the bytes to be modified >+ n = int( l*percentage/100 ) # default is 7% of the bytes to be modified > > for i in range(0,n): # We change the bytes > r = randint(0,l-1) >@@ -170,6 +170,7 @@ > print " -c: Fuzz only client side (both otherwise)" > print " -s: Fuzz only server side (both otherwise)" > print " -w: Number of requests to send before start fuzzing" >+ print " -b: how many % of the bytes to be modified, default is 7%" > print " -u: UDP protocol (otherwise TCP is used)" > print " -v: Verbose (outputs network traffic)" > print " -h: Help page" >@@ -184,6 +185,7 @@ > destport = 0 > testclient = 1 > testserver = 1 >+percentage = 7 > def main(): > global verbose > global notuntil >@@ -193,9 +195,10 @@ > global destport > global testclient > global testserver >+ global percentage > > try: >- opts, args = getopt.getopt(sys.argv[1:], "uvhcsl:r:p:w:", ["help"]) >+ opts, args = getopt.getopt(sys.argv[1:], "uvhcsl:r:p:w:b:", ["help"]) > except getopt.GetoptError: > usage() > sys.exit(2) >@@ -220,6 +223,8 @@ > testserver=0 > if o == "-s": # Only server > testclient=0 >+ if o == "-b": # percentage of bytes to be modified >+ percentage = int(a) > > > except:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 813254
: 577989