What is the .Net core equivalent of KerberosRequestorSecurityToken? - c#

I am specifically trying to replicate a few lines of code, but cannot seem to find the equivalent in .net core. Any help in replacing would be appreciated, or at least some direction in where to look. I did try looking into Kerberos.NET but it didn't seem to have this kind of functionality.
System.IdentityModel.Tokens.KerberosRequestorSecurityToken Ticket = null;
try
{
Ticket = new System.IdentityModel.Tokens.KerberosRequestorSecurityToken(UserSPN);
}

So, I came across a blog post published the day I posted this question and I've been messing around with it. It does effectively replace the System.IdentityModel.Tokens.KerberosRequestorSecurityToken class. The blog is from Harmj0y, who effectively wrote PowerView and helped write Sharphound. My next step is trying to replace the interop features, since the .dll files referenced won't be available on *nix type systems. That may end up being another question. The blogs link is below.
http://www.harmj0y.net/blog/redteaming/kerberoasting-revisited/

Related

Google Freebase API .Net

I posted a request for a Freebase API C# .Net example a few months ago. But there appears to be a bug in the client library and I don’t see if being fixed in the near future. You can see the original post here. Google Freebase Api C# .Net Example
And the bug report here. http://code.google.com/p/google-api-dotnet-client/issues/detail?id=193
My question is there another way to get a .Net service to connect and pull information from Freebase? If so can someone point me in the right direction, An example of some kind would really help. There is very little information out there on using the .Net Google Freebase API.
Thanks for the help.
Isn't it simplier just to use HttpWebRequest and parse the answer as JSON?
I ended with choosing this option when I developed my app, and it took about several hours to write a liveable adapter.
I don't know if it solves your particular problem, but Microsoft recently released their own Freebase API for .NET that you could try out. They also published a number of usage samples. The folks at FSharpx even wrapped it up into a NuGet package.
Of course, you'll need to use F#, because C# and VB don't have the features this API is based on. But that's an added bonus when you consider how much nicer F# is.
I coped with the same problem. And decidd to write my own client as i did not see any good enough that could fit my requirements. You can get it here:
https://freebase4net.codeplex.com/
or
Execute this line "Install-Package Freebase4net" in Package Manager Console
Code sample of usage:
var readService = FreebaseServices.CreateMqlReadService();
dynamic thepolice = new ExpandoObject();
thepolice.type = "/music/artist";
thepolice.name = FreebaseHelpers.Operators.CreateLikeOperator("^The Sco*$"); // Regex search
MqlReadServiceResponse result = await readService.ReadAsync(thepolice);
//Process result
var content = result.ResultAsString;
//get status
var status = result.Status;
More advanced samples of usage you can find here:
https://freebase4net.codeplex.com/documentation

Reading blogger entries from .NET

What is the best way to read entries programatically from Blogger using .NET/C#?
GData has a Blogger API. There is a C# library that can be downloaded. This is an official library from Google. I've used it in the past (though in PHP). The documentation is a bit light, but the code works very well.
The documentation is absolutely atrocious. It literally has zero pertinent information for anything valuable. Your best bet is to get your FeedQuery and then step through in debugger. Once in the debugger you can see all entities and pick out the ones you want. If you have any questions, post em here, I've been working with this API for the last two weeks.

All C# Syntax in a single cs file

I heard about there being a cs file on the internet from a couple different sources that has all of the syntax in C# in a single file, which would be really good for a crash course to get ready for a job I have. Unfortunately no one could point me to the exact file, has anyone heard or seen anything like this?
Is this the one you're looking for?
http://blogs.msdn.com/b/kirillosenkov/archive/2010/05/11/updated-c-all-in-one-file.aspx
I've found this one useful:
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html
There is updated AllInOne.cs document in official ANTLR grammars repository (with C# 5 & 6 support). Also you can find document with AllInOne in Roslyn.

authorize.net C# wrappers/library

Are there any good libraries or wrappers for Authorize.net? The code samples available from their site seem a little ... raw. I'm looking for an easy to use, object oriented API that I can simply set some properties, and it takes care of all the plumbing code under the hood.
I've found a few random blog posts of people offering their code that they've written, but code offered in a blog post doesn't give a high degree of confidence generally that it's been well tested. I mean, we'll consider these if we have to, but we'd prefer something that looks like it's gone through some sort of release/testing cycle ... even if it's just that it has been posted on codeplex or something.
Thanks! :-)
A little late answering, but perhaps this?
http://code.google.com/p/payment-processor/
I use SharpAuthorize.com on a few eCommerce sites. One of which makes around $10K / month...
MinimumCreditCard authNet = new MinimumCreditCard()
.Login("testdrive")
.Password("password")
.TransType(TransType.AUTH_CAPTURE)
.CardNum(_cardNumField.Text)
.ExpDate(_cardExpField.Text)
.CardCode(_cardCodeField.Text)
.Amount(8.00);
if (authNet.Authorize())
{
// Money in your pocket!
}
It is noted on the site, but you should use a transaction id instead of the username and password in real code.
See my answer here, it should help you out. In my answer, I point to a blog post as a reference. You may need to view the revisions to see my whole answer, though. For some reason it is getting cut off for me. Check out the Gateway Provider Implementations section of the blog post. It should help you out and get you going on implementing your own code for talking to the Authorize.Net API. I've used a similar implementation and it has worked well for me.

How to get into SubSonic?

A month ago I searched for some tools that will generate C# classes out for my SQL database/tables. So I don't have to write DAL classes manually and to save a lot of time.
I came across "ORM" and subsonic. I watched the webcasts on the homepage http://subsonicproject.com/ and was pretty impressed by it.
But I am still missing more documentation/knowledge to feel comfortable with subsonic to use it in our projects. Today I read about the "migration" feature somewhere - accidental.
How to get into subsonic? How to get more comfortable with it? How to know about all the features/possibilities it provides? Are there any good blogs/tutorials/whatever for subsonic?
Unfortunately, the best SubSonic "documentation" is in the form of screencasts, but they are very easy to follow.
Quite a lot about SubSonic on Rob Conery's (original creator) blog http://blog.wekeroad.com/tags/subsonic/.
Personally found the best thing is (like Matt said) to just use it, set it up in external tools in VS, get the connection string and a few other config settings sorted, and you're just about good to go. You can get the basics down in an afternoon.
The forum is quite active http://forums.subsonicproject.com/forums/, and a good place if you get stuck.
SubSonic is irritatingly short on documentation (which is one reason I abandoned it). Scott Kuhl wrote a "Getting Started with SubSonic" document (just Google his name and SubSonic) but parts of it appeared to be out of date.
Here is Scott's blog - a place to start at least.
Here is the document's home page. I was curious as to whether the document is indeed out of date and I think it is: the web page has a last updated date in 2006.
Unfortunately, I know of no other documentation and I did look for it.
Update: See the link to documentation that Rob Conery provided in his answer.
I admit it - our docs suck :(. I did try to put a site together:
http://subsonicproject.com
Hope this helps.
Just start using it.
It is very simple and pretty straight forward. There are several screencasts on how to generate your classes with sub commander, once you have that just hit . and see what you can do with them.
I put together a template project referencing SubSonic generated off the Northwind Database. A very simple project, but should easily be enough to get started on your first project. Check it out here:
http://ajondeck.net/post/2008/12/29/ASPNET-20-SubSonic-Project-Template-With-SQL-Server-2005-Northwind-DB.aspx

Categories

Resources