File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/core/packetproxy/controller Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,11 @@ private void launchAttack(final int count) throws Exception {
120120 Thread .sleep (sleepTimeMs );
121121 sendPing ();
122122
123+ final var allLastFramesData = new ByteArrayOutputStream ();
123124 for (final var request : requests ) {
124- request .sendLastFrames ( );
125+ allLastFramesData . write ( request .getLastFramesData () );
125126 }
127+ attackConnection .execFastSend (allLastFramesData .toByteArray ());
126128
127129 for (var i = 0 ; i < requests .size (); i ++) {
128130 attackConnection .receive ();
@@ -375,10 +377,8 @@ private void sendFirstFrames() throws Exception {
375377 connection .execFastSend (firstFramesData );
376378 }
377379
378- private void sendLastFrames () throws Exception {
379- final var lastFramesData = FrameUtils .toByteArray (streamAttackFrames .lastFrames );
380-
381- connection .execFastSend (lastFramesData );
380+ private byte [] getLastFramesData () throws Exception {
381+ return FrameUtils .toByteArray (streamAttackFrames .lastFrames );
382382 }
383383 }
384384}
You can’t perform that action at this time.
0 commit comments