Giter Site home page Giter Site logo

Add source address option about powerping HOT 8 OPEN

killeroo avatar killeroo commented on May 28, 2024
Add source address option

from powerping.

Comments (8)

hero1900 avatar hero1900 commented on May 28, 2024

is this feature comming soon?

from powerping.

Killeroo avatar Killeroo commented on May 28, 2024

I know how this could be implemented, will try out some implementations when I get around to working on the next version.

from powerping.

hero1900 avatar hero1900 commented on May 28, 2024

thank you very much i would love to help too if you like to share your plans.

from powerping.

Killeroo avatar Killeroo commented on May 28, 2024

So the basic plan that I can see, would be to implement our own IPv4 header (something like this, probably with less of the abstration, idealy laid out how we implement ICMP at the moment). Using this implementation we can alter the source address and because we are using RawSockets we can send this and use it as our IP implementation as opposed to the one in .NET.

I have recently been refactoring the actual core ping class so hopefully it can be more easily extended and understood. There is still some refactoring that needs to be done in other places but the core networking stuff is looking good.

So if you want to help and you can do some coding you could experiment to see if the above implementation could work and see if you could get it working within PowerPing. If you don't feel like it then you could help out with testing whenever I get round to implementing it or you could have a look around and see if there are any other low effort ways this could be achieved in standard C# (idealy would rather have a solution that doesn't rely on a third party library).

I can give you some directions and help with getting setup if you do want to help. In any case, I will work on this at some point but there is also alot of other stuff that also needs to be done for this release so I can't really say with certainly when I will get around to it.

Whatever the case any help is welcome and I appreciate the offer regardless.

from powerping.

hero1900 avatar hero1900 commented on May 28, 2024

yes i would like to help. i will mostly work on my weekend. i have been developing on Linux platform recently so a direction on what i need and required will be helpful. such as the best IDE and i will mostly use GCC for compilation. don't know what is the best way of communication inform me on what best work for you.

from powerping.

Killeroo avatar Killeroo commented on May 28, 2024

So the project is made with C# using .NET framework 4.5, which is Windows based, so you won't really be able to use GCC for compilation. The project can be developed and run on linux however using .Net Core which is a cross platform version of .NET framework.

Once you have the sdk downloaded and installed you will be able to compile the project, have a look at this script to get an idea of what dotnet commands you will need to run.

I haven't really tested the project within dotnet core for a while but it should work and function pretty similar to the Windows version (I know cursor operations can mess up sometimes). You might get an error with the settings stuff which I can help walk you through.

In terms of IDEs, the choice is yours. Visual Studio Code might be a good choice and would have some good dotnet core and c# integration, but it is primarily up to you. I have been meaning to get .NET core builds and development working again so this might be a good time.

In terms of communication, you can find my email on my profile, just drop me an email if you need anything and we can go from there.

from powerping.

hero1900 avatar hero1900 commented on May 28, 2024

i managed to debug and build it on my linux machine with .netcore 3.1 but i had to ditch some functionality as System.Configuration seems to differ in .net core for instance .ApplicationSettingsBase does not exist. After all the application runs and i was able to use it. now i will focus on debugging it and understand the overall functionality of the application.

from powerping.

Killeroo avatar Killeroo commented on May 28, 2024

Cool, good stuff 👍 Yeah I know that issue, if you find a solution to it that put in a pull request because that error has been stopping me from releasing/making dotnet core builds. Ok excellent, give me an email or message here if you need help with anything

from powerping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.