Questions tagged [beef]

Beef is a compiled programming language. It was created alongside an IDE that is intended to support Beef-specific features. Use this tag for discussing the Beef programming language or the Beef IDE.

Beef is a compiled programming language. Its syntax and the design of its core libraries are heavily influenced by C#. Beef features support for custom allocators and fine control over stack memory.

Beef was created alongside an IDE ("Beef IDE") intended to support Beef-specific features.

17 questions
3
votes
1 answer

Shrinking a dirty rect

Trying to optimize a falling sand simulation and I'm implementing optimizations that the noita devs talked about in their GDC talk. At around 10:45 they talk about how they use dirty rects. I've started trying to implement a similar…
Ducktor
  • 337
  • 1
  • 9
  • 27
1
vote
1 answer

how to fix more than 3 tunnels are running over a single NGROK agent session

$ grok start --all Your account may not run more than 3 tunnels over a single ngrok agent session. The tunnels already running on this session are: tn_2HpYCEfpJb2VAiIPS, tn_2HpYCKQh6q9j9R3nyKiJ, tn_2HpYCIPYGWWN9f3am75 ERR_NGROK_324 I tried to stop…
1
vote
0 answers

keep getting Not Found The requested URL was not found on this server. Apache/2 once i try to lunch BeEF-xss

keep getting the same message -on my browser- every time I try to start BeEF-xss. "Not Found" The requested URL was not found on this server. "Apache/2"
1
vote
1 answer

Window Creation in Beef Language

So recently I have been learning about compilers and llvm and all of that kinda stuff. But what is really bugging me, is Beef. Beef is a cool programming language that I just learned existed but it is like C# Pro. But the one part I don’t understand…
James51332
  • 164
  • 11
1
vote
1 answer

What does [&] mean when defining a lambda?

In the method reference documentation, there is some example code, copied below: char8 GetNext() { if (i >= str.Length) return 0; return str[i++]; } /* Allocates a delegate bound to GetNext() */ delegate char8() strDlg = scope =>…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
0 answers

Is it possible to install BeEF in Azure Web App of runtime stack Ruby.27? If yes then how?

I want to install beef(browser exploitation framework) in Azure Web app. Because i was using it in my Kali linux VM running on virtualbox in my win 11. I encuontered the problem that beef web portal(/ui/authentication/) don't get authnticated if…
0
votes
2 answers

How to set a BeEF hook to a page

I need to know how to set a BeEF hook to a page of my liking(an existing web page or a new custom page). I tried sharing the demo page but only works on the hosting machine only. I've looked for tutorials but couldn't find any. Please help!
0
votes
1 answer

Beef installation package 'libgcc-9-dev' has no installation candidate, Unable to locate package gcc-9-base

I am getting the error in the image while uploading. I tried some solutions on the site but it didn't work. what should I do error
0
votes
1 answer

Beef installation 'libgcc-9-dev' not available. What do i do about it?

Note, selecting 'libreadline-dev' instead of 'libreadline6-dev' Package libgcc-9-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E:…
Harrylever
  • 29
  • 1
  • 8
0
votes
2 answers

Avoid memory leak from creating temporary objects

In Beef, I can have this code: using System; namespace Program { class Foobar { public int value; public this(int val) { value = val; } public static Foobar operator+(Foobar lhs, Foobar…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
1 answer

How do I sort dictionary keys by value?

If I have a Dictionary and a lambda I can use to order the values, how do I get a list or array of the keys sorted by the corresponding value in the dictionary? For instance, what if I want to sort a Dictionary in descending order by the…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
1 answer

How do I sort a List given an ordering method or lambda?

If I have a method or lambda to sort a List e.g. using the spaceship operator (From the documentation: x <=> y - results is negative if x < y, zero if x == y, positive if x > y), how can I sort a list using that method? There is a…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
1 answer

How do I write a unit test that should fail?

If I make a test that should throw a fatal error, how can I handle that? For instance, how can I write this test to ensure a variable is deleted properly: [Test] public static void TestScope() { String str; { str = scope .(); } …
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
1 answer

What does the "cascading member access" operator (..) do?

In the operator documentation, it says this: x..y - cascading member access. Results in x, which is useful for chaining together method calls. What does this mean? How is this used? Searching for "cascading member access" only meaningfully served…
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
0
votes
1 answer

How do I shuffle a list?

How do I shuffle a List in Beef? I would like to add an extension to Random that shuffles a List in-place: using System.Collections.Generic; namespace System { extension Random { public virtual void Shuffle(List list) …
Ruzihm
  • 19,749
  • 5
  • 36
  • 48
1
2