import { ScrollTextIcon } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { downloadBytes, formatBytes } from "@/lib/utils"; import type { MemShellResult } from "@/types/memshell"; export function AgentResult({ packMethod, packResult, generateResult, }: Readonly<{ packMethod: string; packResult: string; generateResult?: MemShellResult }>) { const { t } = useTranslation(); const isPureAgent = packMethod === "AgentJar"; return ( {t("generateResult.usage")}
  1. {t("download")} MemShellAgent.jar ({formatBytes(atob(packResult).length)})
  2. {isPureAgent && (
  3. {t("tips.download-jattach")}
  4. )}
  5. {isPureAgent ? t("tips.agent-move-to-target") : t("tips.agent-move-to-target1")}
  6. {t("tips.get-pid")}
  7. {isPureAgent ? t("tips.execute-command") : t("tips.execute-command1")}
  8. {t("tips.try-to-use-shell")}
); }