Exploit database

GH-b9cd3869abb4095934c359fea272c453

abhishek-rc/gwa-iot-ui

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-29927

158 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2
abhishek-rc/gwa-iot-uiRevision b5609f61e6c4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/hooks/useGoBack.ts

TypeScript · 357 bytes
import { useRouter } from "next/navigation";

const useGoBack = () => {
  const router = useRouter();

  const goBack = () => {
    if (window.history.length > 1) {
      router.back(); // Navigate to the previous route
    } else {
      router.push("/"); // Redirect to home if no history exists
    }
  };

  return goBack;
};

export default useGoBack;