Skip to content

Commit

Permalink
fix: set variable indicating that the crash has ocurred
Browse files Browse the repository at this point in the history
  • Loading branch information
NSEcho committed Jan 24, 2024
1 parent 1e240f1 commit 5a1abce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package cmd
import (
"context"
"fmt"
"os"
"strings"
"time"

tea "github.com/charmbracelet/bubbletea"
"github.com/frida/frida-go/frida"
"github.com/nsecho/furlzz/internal/tui"
"github.com/nsecho/furlzz/mutator"
"github.com/spf13/cobra"
"os"
"strings"
"time"
)

var fuzzCmd = &cobra.Command{
Expand Down Expand Up @@ -214,6 +215,7 @@ var fuzzCmd = &cobra.Command{
p.Send(tui.MutatedMsg(mutated))
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
if err := script.ExportsCallWithContext(ctx, "fuzz", method, mutated.Input); err == frida.ErrContextCancelled {
hasCrashed = true
sess.Detach()
break
}
Expand Down

0 comments on commit 5a1abce

Please sign in to comment.