Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanel Kukic committed Jun 30, 2020
0 parents commit 5b15960
Show file tree
Hide file tree
Showing 32 changed files with 8,222 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: 3reetop
custom: https://cash.app/$3reetop
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.svclog
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml
*.azurePubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/
## TODO: If the tool you use requires repositories.config, also uncomment the next line
!packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
![Ss]tyle[Cc]op.targets
~$*
*~
*.dbmdl
*.[Pp]ublish.xml

*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

_NCrunch*
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (C) 2020 Sanel Kukic (3reetop)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# sphk
SpamHook, reinvented. This was long overdue.

## Features
- A nice WinForms GUI now, yay!
- A much better and easier to use commandline
- Complete rewrite in C#
- New icon!
- New name!

## How to use
[Download it from the Releases page](https://github.com/3reetop/sphk/releases/latest) and run either of the following:

**If you wish to use the GUI**: run `sphk_gui.exe`
or
**If you know your way around a command-line**: run `sphk.exe`

The GUI is really just a fancy wrapper for the command-line.

## License
This project is licensed under the terms of the MIT License, you can find more info in the [LICENSE.txt](./LICENSE.txt) file.
13 changes: 13 additions & 0 deletions src/.idea/.idea.sphk/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/.idea/.idea.sphk/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/.idea/.idea.sphk/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/.idea/.idea.sphk/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/.idea/.idea.sphk/riderModule.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions src/sphk.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sphk", "sphk\sphk.csproj", "{E3B34BFD-F119-41A1-A374-55972A0ABBC5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sphk_gui", "sphk_gui\sphk_gui.csproj", "{2A4618F6-6E3A-4F54-B9DB-D176FFFB1D50}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E3B34BFD-F119-41A1-A374-55972A0ABBC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3B34BFD-F119-41A1-A374-55972A0ABBC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E3B34BFD-F119-41A1-A374-55972A0ABBC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3B34BFD-F119-41A1-A374-55972A0ABBC5}.Release|Any CPU.Build.0 = Release|Any CPU
{2A4618F6-6E3A-4F54-B9DB-D176FFFB1D50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A4618F6-6E3A-4F54-B9DB-D176FFFB1D50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A4618F6-6E3A-4F54-B9DB-D176FFFB1D50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A4618F6-6E3A-4F54-B9DB-D176FFFB1D50}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
40 changes: 40 additions & 0 deletions src/sphk/Config.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2020 Sanel Kukic (3reetop)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
// associated documentation files (the "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.

namespace sphk
{
public class Config
{
// Define a string to hold the URL of the webhook to spam
public string webhook { get; set; }
// Define a string to hold the message we will be spamming
public string content { get; set; }
// Define a string to hold the webhook's custom avatar URL
public string avatar_url { get; set; }
// Define a string to hold the webhook's custom username
public string username { get; set; }
// Define a string to hold the time we should wait, in seconds, in between POST requests
public string timeout { get; set; }
// Define a string containing how many times we should spam this webhook
// If this string is set to "-1", then we should continue spamming the webhook
// until the user manually stops by hitting CTRL+C
public string times { get; set; }
// Define a string that contains whether or not the message will be text-to-speech enabled.
public string use_tts { get; set; }
}
}
32 changes: 32 additions & 0 deletions src/sphk/PostBody.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2020 Sanel Kukic (3reetop)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
// associated documentation files (the "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.

namespace sphk
{
public class PostBody
{
// Define a string to hold our message content
public string content { get; set; }
// Define a string to hold our avatar URL
public string avatar_url { get; set; }
// Define a string to hold our custom username
public string username { get; set; }
// Define a boolean to determine if the message will be text-to-speech enabled
public bool use_tts { get; set; }
}
}
Loading

0 comments on commit 5b15960

Please sign in to comment.