Exploit databaseDownload repository ZIP
GH-9d8bf7b89f407a0fff790750df76b5d3
lewis-ricardo/amaranth-project
Sources for CVE-2025-8088
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- BuildOptions.cs
- BuilderProfile.cs
- DummyCertificate.cs
- FileManagerListTag.cs
- FileTransfer.cs
- Settings.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
source/Quasar-master/Quasar.Server/Models/FileTransfer.cs
C# · 2,288 bytesusing Quasar.Common.IO;
using Quasar.Common.Utilities;
using Quasar.Server.Enums;
using System;
namespace Quasar.Server.Models
{
public class FileTransfer : IEquatable<FileTransfer>
{
private static readonly SafeRandom Random = new SafeRandom();
public int Id { get; set; }
public TransferType Type { get; set; }
public long Size { get; set; }
public long TransferredSize { get; set; }
public string LocalPath { get; set; }
public string RemotePath { get; set; }
public string Status { get; set; }
public FileSplit FileSplit { get; set; }
public bool Equals(FileTransfer other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Id == other.Id && Type == other.Type && Size == other.Size &&
TransferredSize == other.TransferredSize && string.Equals(LocalPath, other.LocalPath) &&
string.Equals(RemotePath, other.RemotePath) && string.Equals(Status, other.Status);
}
/// <summary>
/// Creates a new object that is a copy of the current instance.
/// </summary>
/// <returns>A new object that is a copy of this instance.</returns>
public FileTransfer Clone()
{
return new FileTransfer()
{
Id = Id, Type = Type, Size = Size, TransferredSize = TransferredSize, LocalPath = LocalPath,
RemotePath = RemotePath, Status = Status, FileSplit = FileSplit
};
}
public static bool operator ==(FileTransfer f1, FileTransfer f2)
{
if (ReferenceEquals(f1, null))
return ReferenceEquals(f2, null);
return f1.Equals(f2);
}
public static bool operator !=(FileTransfer f1, FileTransfer f2)
{
return !(f1 == f2);
}
public override bool Equals(object obj)
{
return Equals(obj as FileTransfer);
}
public override int GetHashCode()
{
return Id;
}
public static int GetRandomTransferId()
{
return Random.Next(0, int.MaxValue);
}
}
}