Skip to content

Commit

Permalink
Update ShowRequestsBetweenDates.bambda
Browse files Browse the repository at this point in the history
  • Loading branch information
PortSwiggerWiener authored Jan 22, 2024
1 parent 7dc3289 commit bb75372
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Proxy/HTTP/ShowRequestsBetweenDates.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@

//The current configuration looks for requests/responses between January 19th, 2024 10:00AM US Central Time and January 19th, 2024 10:10AM US Central Time
//Change the date/time to the values you desire and your local timezone (https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html#SHORT_IDS)
//Note: System Default zone did not work for me. Maybe it will for you.
//The script accounts for 'null' values. Replace the before or after variables with null to search just before or just after a certain date/time.

ZonedDateTime requestsAfterThisDate = ZonedDateTime.of(LocalDateTime.of(2024, 1, 19, 10, 0), ZoneId.of("America/Chicago")); // or null
ZonedDateTime requestsBeforeThisDate = ZonedDateTime.of(LocalDateTime.of(2024, 1, 19, 10, 10), ZoneId.of("America/Chicago")); // or null

boolean afterCheck=true;
boolean beforeCheck=true;
boolean afterCheck = true;
boolean beforeCheck = true;

if(requestsAfterThisDate!=null)
if (requestsAfterThisDate != null)
{
afterCheck = requestResponse.time().isAfter(requestsAfterThisDate);
}
if(requestsBeforeThisDate!=null)

if (requestsBeforeThisDate != null)
{
beforeCheck = requestResponse.time().isBefore(requestsBeforeThisDate);
}

return afterCheck&&beforeCheck;
return afterCheck && beforeCheck;

0 comments on commit bb75372

Please sign in to comment.